HTML gives a page bones. CSS gives it a face. This section covers the handful of CSS ideas that do most of the work on the modern web.
Hi, I'm building things.
ContactHi, I'm building things.
ContactCSS (Cascading Style Sheets) is what makes HTML look good. One CSS file controls the entire visual appearance of your site :: colors, fonts, spacing, layout. Change one line and the whole site updates.
That Charleston restaurant with the beautiful website? Their HTML is the menu items and headings. Their CSS is the dark wood aesthetic, the gold text, the clean layout. Same structure :: completely different look. You'll be able to do this by end of week.
h1 { color: #c9a84c; /* gold */ font-size: 48px; font-family: Georgia, serif; } p { color: #555; line-height: 1.7; max-width: 600px; }
Don't know the CSS property for what you want? Describe it: "How do I make text bigger and add space underneath?" Claude will tell you font-size and margin-bottom. You learn the vocabulary by doing.
Use hex codes like #c9a84c or names like steelblue. Go to coolors.co to generate palettes :: lock a WV gold and hit spacebar for matching colors. Paste the hex codes directly into your Claude prompt.
Go to fonts.google.com → pick a font → copy the <link> tag → paste into your HTML <head>. Then use it in CSS: font-family: 'Playfair Display', serif;. Free, loads fast.
margin = space outside. padding = space inside. margin: 0 auto centers a block. Ask Claude anytime you're not sure.
Style my HTML page with: - Font: use 'Lora' from Google Fonts for headings - Colors: #060810 background, #e8ecf4 text, #c9a84c gold accent, #2563a8 blue accent - Centered layout, max-width 700px, generous padding - Smooth hover effects on links Write the full CSS file and the link tag for my HTML head.
Flexbox is how you put things side by side :: nav links in a row, cards next to each other, content centered. One property changes everything.
.nav { display: flex; /* puts children side by side */ gap: 24px; /* space between items */ justify-content: center; /* center horizontally */ }
Flexbox is one of the top CSS concepts asked about in junior developer interviews. Learning it now :: even imperfectly :: puts you ahead of people who've been 'thinking about coding' for years.
Small interactions make a page feel alive. CSS handles these with almost no code.
.button { background: #c9a84c; transition: all 0.2s ease; } .button:hover { background: #7a5e22; transform: translateY(-2px); }