CSS Portal

Generators, references and tools for CSS and HTML

CSS Portal has hundreds of pages of examples, CSS properties and generators for web design. Every generator produces code you can copy and paste into your project.

.card {
  background: linear-gradient(135deg, #3556f5, #ff7a59);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(16, 24, 40, .22);
  padding: 28px;
  color: #fff;
}
Copy it, paste it, ship it. Every generator gives you code to copy.
If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Explore CSS Portal

CSS Generators

Tweak a design with live previews, then copy the finished CSS straight into your project.

CSS Resources

Look up CSS properties, functions, pseudo-elements, data types and more, from the basics to advanced techniques.

CSS Tools

Practical tools that help you write clean, efficient and maintainable CSS.

HTML Resources

Create, optimize and troubleshoot HTML with tools for every skill level.

Miscellaneous Tools

Handy web development tools that don't fit the other categories. More are on the way.

New

UI Elements

Browse buttons, forms and loaders built with CSS and HTML, or submit your own to share with the community.

From the blog

View more blog entries
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 [dir=”rtl”] overrides that double your stylesheet size. […]

CSSPortal · April 3, 2026
dialog modals
CSS, HTML, JavaScript

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 […]
CSSPortal · March 28, 2026
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 […]

CSSPortal · March 22, 2026
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 […]

CSSPortal · March 14, 2026
If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!