CSS Tutorial
CSS Projects
Ten complete pages you style in the live preview: a card, a gallery, a navbar, a form, and a small dashboard.
What a project is on StudyGrid
CSS lessons teach one property at a time. These projects assemble a whole page: a card, a gallery, a nav, a form, and a layout you would keep. Each walkthrough ends with a complete document you can open in the live preview.
Use Try it in CSS under an example. That opens /css/try — a live page preview with a stylesheet pane.
10 build-along projects. Each page walks through the design, then a working program you can open inTry CSS at /css/try. Change a value, run it again, then try the practice tasks at the bottom.
The 10 projects
Profile Card
A centered profile card with a photo, name, role, and a skills row using the box model and shadow.
border-radius · box-shadow · flexBeginnerButton Set
Primary, ghost, and danger buttons with hover, focus, and disabled states that stay readable.
:hover · :focus · border-radiusBeginnerPhoto Gallery
A responsive image grid with captions. Gap, object-fit, and a hover lift keep the pictures in line.
grid · object-fit · gapBeginnerPricing Table
Three pricing cards in a row. The featured plan is slightly larger and uses a stronger border.
flex · scale · borderBeginnerSite Navbar
A horizontal nav with a brand, links, and a current-page style. It wraps cleanly on a narrow viewport.
flex · nav · mediaBeginnerStyled Form
A contact form with stacked labels, padded inputs, and a focus ring that does not hide the outline.
input · :focus · buttonIntermediateLanding Hero
A full-width hero with a headline, a short lead, two buttons, and a soft gradient background.
gradient · flex · clampIntermediateTimeline
A vertical timeline of events with a center line, dots, and alternating cards.
position · ::before · gridIntermediateDashboard Cards
A small stats dashboard: four metric cards on a grid, with a muted header and numeric emphasis.
grid · variables · fontIntermediateMagazine Layout
A two-column magazine page: a featured story, a sidebar list, and a footer using grid areas.
grid-template-areas · typography · mediaHow to work a project
- Read the page goal and the properties you will use.
- Copy the first fragment and preview it.
- Replace it with the complete document at the end of the chapter.
- Change the colors, the gap, or the number of items. The structure should still hold.
- Do the practice tasks, then move to the next project.