ZeroToWP

CSS

Quick Definition

CSS (Cascading Style Sheets) is the language that controls how your WordPress site looks — colors, fonts, spacing, layout, and responsive behavior. Your theme's style.css file contains the CSS rules that define your site's visual design.

MDN Web Docs CSS reference

What Is CSS?

CSS controls visual presentation. HTML = structure, CSS = appearance. Colors, fonts, spacing, layout, animations, responsive behavior. Every theme has a style.css file.

How CSS Works

h1 { color: #1e293b; font-size: 2.5rem; }

  • Selector — Which element to style
  • Property — What to change
  • Value — How to change it

Cascading = more specific selectors override general ones.

CSS in WordPress

  • Theme stylesheetstyle.css, override via child themes
  • Customizer → Additional CSS — Custom snippets
  • Page buildersElementor/Divi generate CSS visually
  • WPCode — Code snippet plugins

Key Concepts

ConceptWhat It Does
FlexboxRow/column layout
CSS Grid2D page layouts
Media queriesResponsive design
VariablesReusable values
MinificationReduce file size

Why It Matters

Understanding basic CSS gives you control beyond the Customizer — fix designs, tweak spacing, change colors without a developer.

Sources: MDN, WPBeginner

Related Terms

Related Articles