SEOlust logo SEOlust
CSS Toolkit & Reference

CSS Resources

Everything you need to design, generate and reference CSS in one place — 37 free visual generators that output copy-ready code, plus fast, practical cheat sheets for selectors, units, functions, at-rules, pseudo-classes, Flexbox and Grid. No sign-up, no paywall.

37+CSS generators
8Cheat sheets
100%Free & in-browser
0Sign-ups

CSS Generators

Visual, no-code generators — adjust the controls, preview live, and copy production-ready CSS.

CSS :nth-child Tester

Test CSS :nth-child formulas (odd, even, 2n+1, 3n, -n+3) visually — matching items highlight live so you can …

CSS Accordion Generator

Create a pure-CSS accordion (no JavaScript) with the native details element — style the header, icon, border,…

CSS Animated Text Generator

Create animated text with pure CSS — typewriter, wave, gradient-slide, or fade-pulse effects in your text, co…

CSS Animation & Keyframes Generator

Create CSS keyframe animations visually — fade, slide, zoom, bounce, spin, pulse, and shake, with duration, t…

CSS Border-Radius Generator

Round element corners visually and copy the CSS — control each corner, make circles and pill shapes, or gener…

CSS Box-Shadow Generator

Design CSS box-shadows visually with live preview — control offset, blur, spread, opacity, color, and inset, …

CSS Button Generator

Design CSS buttons visually — colors, gradients, padding, radius, shadow, and hover effects with a live previ…

CSS Checkbox & Radio Generator

Style custom checkboxes and radio buttons with pure CSS — colors, size, and check/dot marks — with a live pre…

CSS Clip-Path Generator

Create CSS clip-path shapes visually — triangles, hexagons, stars, arrows, circles and more — with a live pre…

CSS Color Variable Generator

Turn a color palette into CSS custom properties — named :root variables, or a full 50–900 shade scale from on…

CSS Filter Generator

Experiment with CSS filters visually — blur, brightness, contrast, saturate, grayscale, sepia, and hue-rotate…

CSS Flexbox Generator

Build flexbox layouts visually — set direction, justify, align, wrap, and gap with a live preview, then copy …

CSS Glitch Text Generator

Create an animated glitch text effect with pure CSS — RGB color-split, flicker, and distortion in your colors…

CSS Gradient Border Generator

Create gradient borders that work with rounded corners — set colors, angle, width, and radius with a live pre…

CSS Gradient Generator

Create CSS gradients visually and copy the code in one click — linear, radial, and conic gradients with unlim…

CSS Gradient Text Generator

Create gradient text with CSS visually — pick colors and angle, preview live, and copy the background-clip co…

CSS Grid Generator

Create CSS Grid layouts visually — set columns, rows, gaps, and responsive sizing with a live preview, then c…

CSS Loader & Spinner Generator

Create pure-CSS loading spinners and animations — spinner, dual-ring, pulse, and dots styles with adjustable …

CSS Menu Generator

Create a styled navigation menu with CSS — horizontal or vertical, custom colors, hover, spacing, and radius …

CSS Pattern Generator

Create seamless CSS background patterns — stripes, dots, checkerboard, grids and more — with two colors and a…

CSS Range Slider Generator

Style HTML range sliders with cross-browser CSS — track, fill, and thumb colors, sizes, and shadow — with a d…

CSS Ribbon Generator

Create corner ribbons for cards — a diagonal "New" / "Sale" banner in any corner with custom text and colors,…

CSS Scrollbar Generator

Style custom scrollbars with CSS — width, track/thumb colors, and radius, with a live scrollable preview and …

CSS Skeleton Loader Generator

Generate CSS skeleton loading screens — card, profile, or text layouts with shimmer or pulse animation, custo…

CSS Specificity Calculator

Calculate any CSS selector's specificity — ID/class/element breakdown with per-part explanation and a compare…

CSS Text Highlighter Generator

Create marker-style text highlight effects with CSS — flat, underline, marker, or half-height styles in any c…

CSS Text Input Generator

Style text input fields with CSS — border, focus color, background, radius, padding, and a focus glow ring — …

CSS Text-Shadow Generator

Add shadows and glow effects to text visually — adjust offset, blur, opacity, and color with a live preview a…

CSS Toast Notification Generator

Design toast notifications — success/error/info/warning, position, and colors — with a live preview and a tin…

CSS Toggle Switch Generator

Build an iOS-style toggle switch with pure CSS — size, on/off, and knob colors, with copy-ready HTML + CSS. A…

CSS Tooltip Generator

Create pure-CSS tooltips — pick position, colors, radius, and arrow, hover a live preview, then copy the code…

CSS Transform Generator (2D & 3D)

Build CSS transforms visually — combine translate, scale, rotate, skew, and 3D rotation with a live preview, …

CSS Triangle Generator

Generate a pure-CSS triangle in any direction — set size and color, preview it live, and copy the code. Perfe…

CSS clamp() Calculator (Fluid Typography)

Generate fluid, responsive font sizes and spacing with CSS clamp() — set min/max size and viewport range and …

Cubic-Bezier Easing Generator

Design custom CSS easing curves visually — drag the curve, preview the timing on a moving element, and copy t…

Glassmorphism CSS Generator

Create the frosted-glass (glassmorphism) effect visually — adjust blur, transparency, tint, and border over a…

Neumorphism CSS Generator

Create soft-UI neumorphism effects visually — adjust color, distance, blur, and shape (flat, concave, convex)…

CSS Selectors

Selectors decide which elements a rule targets. Combine them to reach exactly the elements you want.

SelectorMatchesExample
*Every element (universal)* { margin: 0; }
.classElements with that class.btn { … }
#idThe element with that id#hero { … }
A, BEither A or B (group)h1, h2 { … }
A BB inside A (descendant)nav a { … }
A > BB as a direct child of Aul > li { … }
A + BB immediately after Ah2 + p { … }
A ~ BAny B after A (siblings)h2 ~ p { … }
[attr]Has that attribute[disabled] { … }
[attr="x"]Attribute equals a value[type="email"]
[attr^="x"]Attribute starts with[href^="https"]
[attr$="x"]Attribute ends with[src$=".svg"]
[attr*="x"]Attribute contains[class*="col-"]
CSS
/* Style links inside the main nav only */
nav > ul > li a {
  color: #6d5ef6;
  font-weight: 600;
}

/* Every input except checkboxes */
input:not([type="checkbox"]) {
  border: 1px solid #cbd5e1;
}

Want to compare which rule wins? Use the CSS Specificity Calculator and the :nth-child Tester.

CSS Units

Absolute units are fixed; relative units scale with context — the key to responsive layouts.

UnitRelative toBest for
pxNothing (absolute pixels)Borders, fine detail
remRoot font sizeFont sizes, spacing (recommended)
emElement's own font sizePadding that scales with text
%Parent elementFluid widths & heights
vw / vhViewport width / heightFull-screen sections, hero text
vmin / vmaxSmaller / larger viewport axisElements that must always fit
frFree space in a gridCSS Grid track sizing
chWidth of the “0” glyphReadable line lengths
Rule of thumb: use rem for type and spacing, % or fr for layout, and clamp() for fluid sizes that grow with the screen. Reserve px for hairline borders.

Convert between them with the CSS Unit Converter or build fluid sizes with the clamp() Calculator.

CSS Functions

Functions compute values dynamically — for math, color, layout and responsive sizing.

FunctionWhat it doesExample
calc()Mixes units in mathwidth: calc(100% - 2rem)
clamp()Min, preferred, max valueclamp(1rem, 2vw, 1.5rem)
min() / max()Pick smallest / largestmin(90%, 60rem)
var()Reads a custom propertycolor: var(--accent)
rgb() / hsl()Define a colorhsl(248 90% 66%)
linear-gradient()Gradient imagelinear-gradient(90deg,#f00,#00f)
url()Reference an asseturl("bg.png")
translate() / scale()Transform an elementtransform: scale(1.1)
CSS
:root {
  --space: 1rem;
  --accent: #6d5ef6;
}

.card {
  /* fluid type: never below 1rem, never above 1.5rem */
  font-size: clamp(1rem, 2vw, 1.5rem);
  padding: calc(var(--space) * 2);
  max-width: min(100%, 60rem);
}

CSS At-Rules

At-rules start with @ and give the browser instructions — from responsive breakpoints to animations and feature tests.

At-rulePurpose
@mediaApply styles at certain screen sizes or capabilities
@keyframesDefine the steps of an animation
@font-faceLoad and name a custom font
@supportsApply styles only if a feature is supported
@containerStyle based on a parent container's size
@importPull in another stylesheet
@layerGroup rules into cascade layers for control
CSS
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@supports (display: grid) {
  .layout { display: grid; }
}

Build keyframes visually with the CSS Animation Generator.

Pseudo-classes & Pseudo-elements

Pseudo-classes (:) target elements in a state; pseudo-elements (::) style a part of an element.

SelectorTypeTargets
:hoverPseudo-classElement the pointer is over
:focusPseudo-classFocused element (keyboard/click)
:nth-child(n)Pseudo-classElement by position among siblings
:first-child / :last-childPseudo-classFirst or last sibling
:not(x)Pseudo-classEverything except x
:checkedPseudo-classChecked checkbox / radio
::before / ::afterPseudo-elementGenerated content in the element
::placeholderPseudo-elementPlaceholder text of an input
::first-linePseudo-elementFirst line of a block of text
::selectionPseudo-elementText the user has highlighted
CSS
/* Add an icon before every external link */
a[target="_blank"]::after {
  content: " ↗";
  color: #6d5ef6;
}

/* Zebra-stripe table rows */
tr:nth-child(even) {
  background: #f8fafc;
}

Flexbox Quick Reference

Flexbox lays items out in one dimension — a row or a column — and is perfect for toolbars, cards and centering.

PropertyOnCommon values
displayContainerflex, inline-flex
flex-directionContainerrow, column
justify-contentContainercenter, space-between
align-itemsContainercenter, stretch
flex-wrapContainerwrap, nowrap
gapContainer1rem, 8px 16px
flexItem1, 0 0 auto
CSS
/* Perfectly center anything */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive card row */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

Prototype layouts fast with the Flexbox Generator.

CSS Grid Quick Reference

Grid lays out items in two dimensions — rows and columns — ideal for whole-page and gallery layouts.

PropertyPurposeExample
grid-template-columnsDefine column tracks1fr 1fr 1fr
grid-template-rowsDefine row tracksauto 1fr auto
gapSpace between tracks16px
repeat()Repeat a track patternrepeat(3, 1fr)
minmax()Track size rangeminmax(200px, 1fr)
place-itemsAlign items in both axescenter
CSS
/* Auto-fitting responsive grid — no media queries needed */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

Design grids visually with the CSS Grid Generator.

Media Queries & Breakpoints

Media queries apply styles conditionally — by width, colour scheme, or user preferences like reduced motion.

CSS
/* Common mobile-first breakpoints */
@media (min-width: 640px)  { /* sm */ }
@media (min-width: 768px)  { /* md */ }
@media (min-width: 1024px) { /* lg */ }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* Automatic dark mode */
@media (prefers-color-scheme: dark) {
  body { background: #0f172a; color: #e2e8f0; }
}

Frequently Asked Questions

Quick answers about these CSS resources and how to use them.

What is this CSS resources page?

It is a single hub that brings together every free CSS generator on SEOlust alongside handy quick-reference cheat sheets for selectors, units, functions, at-rules, pseudo-classes, Flexbox and Grid. Use the generators to produce copy-ready code, and the references to look up syntax fast.

Are these CSS tools free to use?

Yes. Every generator and reference here is completely free, runs in your browser, and requires no account or sign-up.

Do the CSS generators work without JavaScript frameworks?

Yes. Each generator outputs plain, standards-based CSS (and minimal HTML where needed) that you can paste into any project — no framework, build step, or library required.

What is the difference between a pseudo-class and a pseudo-element?

A pseudo-class targets an element in a particular state, such as :hover or :nth-child(), and uses a single colon. A pseudo-element styles a specific part of an element, such as ::before or ::first-line, and uses a double colon.

Which CSS units should I use for responsive design?

Use rem for font sizes and spacing so everything scales with the user’s base font size, percentages or fr units for fluid layout widths, and viewport units (vw, vh) or clamp() for fluid typography. Reserve px for fine details like borders.

How do I center an element in CSS?

The simplest modern way is Flexbox on the parent: display:flex; justify-content:center; align-items:center. With Grid you can use display:grid; place-items:center. Both center a child horizontally and vertically.

Can I use these references for learning CSS?

Absolutely. The cheat sheets are written to be beginner-friendly with working code examples you can copy, while the generators let you experiment visually and see the exact CSS each change produces.