Favorites

CSS Blog

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
CSS Timeline
CSS

How Far CSS Has Come

CSS is now more than 30 years old. In that time it has grown from a simple way to set fonts and colors into one of the most capable design languages around. In this post, we'll look back at where CSS came from, the struggles along the way, how far it has come, and what's on its way next.

Animation Effects

Animation Effects When Copying to Clipboard

Copy-to-clipboard is one of those interactions that deserves a little ceremony. The user performed an action — let them feel it. In a previous post we explored animation effects using clipboard.js. Today we're stripping that dependency out entirely and doing everything with navigator.clipboard.writeText(), CSS animations, and a dash of vanilla JS. Each demo below is…

css logical properties
CSS

CSS Logical Properties

Picture this: you've built a beautiful card component. Padding looks perfect in English. Then your product manager says "we need Arabic support" and suddenly everything is mirrored - your left-aligned icon is now on the wrong side, your margin-left pushes content the wrong way, and you're drowning in overrides that double your stylesheet size. Or…

dialog modals

Using the <dialog> Element for Native Modals

For years, developers reached for JavaScript libraries - Bootstrap, custom-rolled overlays, or npm packages - whenever they needed a modal. The problem was never a lack of options; it was that every solution came with tradeoffs. Too heavy, too opinionated, too hard to style, or subtly broken for keyboard and screen reader users. Focus management…

CSS Backgrounds
CSS

A Guide to CSS Background Properties

When most developers think of CSS backgrounds, they reach for background-color or slap a background-image on a hero section and call it done. But the CSS background module is quietly one of the richest areas of the entire language - a suite of nine carefully designed properties that, when combined, can produce visual effects that…

CSS Reset
CSS

Modern CSS Reset – Do You Still Need One?

For years, a CSS reset was the first thing pasted into every new stylesheet. Eric Meyer's reset. Normalize.css. The "* { margin: 0; padding: 0 }" trick. They were almost ritual - a ward against the chaos of browser inconsistency. But the web has changed dramatically. So has CSS itself. The question is no longer…

CSS HTML Quiz

CSS & HTML Quiz - Expanded to 16 Quizzes

What began as a single CSS quiz has evolved into a complete collection of 16 interactive quizzes covering both CSS and HTML. Designed to support every stage of your learning journey, the quizzes range from beginner-friendly fundamentals to advanced, in-depth challenges. You can explore them by skill level or dive into specific topics, making it…

CSS Validator Updated
CSS

Updated CSS Validator - Complete Makeover, New Engine

If you've ever pasted a perfectly valid stylesheet into an online CSS validator only to be bombarded with false positives about oklch(), dvh units, or custom properties, you'll know how frustrating outdated tooling can be. That problem just got a whole lot smaller. The CSS Validator at CSS Portal has been completely rebuilt from the…

The difference between display: none & visibility: hidden
CSS

The difference between display: none & visibility: hidden

If you've ever needed to hide an element on a page, you've probably reached for one of these two CSS properties. At first glance they seem identical - the element disappears. But under the hood, they solve the problem in fundamentally different ways, and choosing the wrong one can cause subtle, frustrating layout bugs. The…

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee