Today
Sourdough, tomato, olive oil.
.card { padding: 1rem }
CSS tutorial
A beginner CSS course: selectors, colors, the box model, flexbox, and grid. The editor has a stylesheet pane and a demo page. Try it Yourself opens /css/try.
48 chapters. The editor is /css/try.
Topics
Syntax, selectors, how to load CSS
Intro · Syntax · SelectorsColor, space, and the box model
Colors · Margin · Box modelType, links, lists, tables
Text · Fonts · LinksDisplay, position, float, align
Display · Position · AlignFlex, grid, queries, responsive
Flexbox · Grid · MediaRadius, gradient, motion
Shadows · Transitions · Variables100+ copy-and-preview snippets
Buttons · Cards · NavTen pages you can finish
Card · Gallery · HeroQuestion, hint, solution, Check
Labs · Hints · Style CheckLesson sequence
Common questions about this page.
The StudyGrid CSS tutorial is a full beginner track: selectors, the box model, text, layout, flex, grid, and responsive design. Each chapter has copy-and-preview examples.
Yes. Use the browser editor on StudyGrid for a quick check, then Download the example and run it on your computer. Local runs show real errors and the real toolchain, which is one of the fastest ways to learn css tutorial in this CSS CSS lesson (Learn CSS with Interactive Tutorials).
No. Try CSS is a stylesheet preview at /css/try. Try HTML stays at /html/try. CSS lessons never open the HTML-only editor or the Python editor.
No. Open a chapter, click Try it in CSS, and the page preview updates in the browser.
Start at CSS Intro, then Syntax, Selectors, and How To. After colors and the box model, continue to flex, grid, and media queries. Use Next at the bottom of each chapter.
Yes. The CSS studio on StudyGrid (studygrid.in) is free: dashboard, chapters, and the live preview editor.