Skip to content

CSS Course for Beginners

Learn CSS step by step in 18 practical lessons: colors, fonts, the box model, Flexbox, Grid, responsive design and animations, ending with a real landing page.

Beginner 7 chapters 18 lessons Free
YOUR PROGRESS0%
/ Course content

7 chapters · 18 lessons

Every chapter and lesson has its own page. Open a chapter to see its lessons.

1 Chapter 1: Getting Started With CSS4 lessons

Connect CSS to your HTML, learn how selectors pick elements, and get comfortable with colors and units: the four basics every stylesheet is built on.

01How to Add CSS to HTML (3 Ways)Coming soon 02CSS Selectors Explained SimplyComing soon 03CSS Colors: Hex, RGB and HSLComing soon 04CSS Units: px vs em vs remComing soon
2 Chapter 2: The Box Model, Text and Backgrounds3 lessons

Understand how every element is a box with padding, border and margin, then style text with real fonts and add background images, colors and gradients.

05The CSS Box Model ExplainedComing soon 06CSS Fonts: Google Fonts and TypographyComing soon 07CSS Backgrounds: Images, Colors and GradientsComing soon
3 Chapter 3: Layout Basics2 lessons

Learn how elements flow on the page with the display property, and how to move them anywhere with position: relative, absolute, fixed and sticky.

08CSS Display: Block, Inline and Inline-BlockComing soon 09CSS Position: Relative, Absolute, Fixed and StickyComing soon
4 Chapter 4: Flexbox and Grid3 lessons

Build real layouts with Flexbox and Grid, and finally learn how to center anything, horizontally and vertically.

10CSS Flexbox Tutorial for BeginnersComing soon 11How to Center a Div in CSSComing soon 12CSS Grid Tutorial for BeginnersComing soon
5 Chapter 5: Responsive and Reusable CSS2 lessons

Make your pages look right on every screen with media queries, and keep your CSS easy to change with variables.

13Responsive Design With Media QueriesComing soon 14CSS Variables (Custom Properties)Coming soon
6 Chapter 6: Motion and Interaction2 lessons

Bring your pages to life with smooth transitions, keyframe animations, hover effects and pseudo-classes, without slowing them down.

15CSS Transitions and AnimationsComing soon 16CSS Hover Effects and Pseudo-ClassesComing soon
7 Chapter 7: Debug and Build2 lessons

Learn why CSS rules win or lose, fix "my styles aren't working" for good, and put everything together into a responsive landing page.

17CSS Specificity: Why Your Styles Aren’t WorkingComing soon 18Build a Responsive Landing Page With HTML and CSSComing soon

What you’ll learn

  • How to connect CSS to your HTML and target exactly the elements you want
  • Colors, units, fonts and backgrounds that make a page look professional
  • The box model, so spacing finally makes sense
  • Flexbox and Grid, the two layout tools every modern site uses
  • Responsive design that works on phones, tablets and desktops
  • Hover effects, transitions and simple animations
  • How to debug CSS when “nothing is working”

Who this course is for

  • Anyone who finished the HTML course (or knows basic HTML)
  • Designers who want their Figma designs to look the same in the browser
  • Freelancers who edit WordPress, Shopify or Wix themes and want to fix styling issues themselves

Before you start

Do I need to know HTML first?

Yes, the basics. CSS styles HTML, so you need to know what headings, paragraphs, links and divs are. The free HTML course on this site covers everything you need.

How long does it take to learn CSS?

You can learn the essentials in three to four weeks doing one lesson a day. Getting really comfortable with layouts takes a few real projects.

Is CSS still worth learning with page builders and AI?

Yes. Page builders and AI tools write CSS for you, but when something looks wrong on a phone or a client asks for a small change, knowing CSS is what lets you fix it in minutes.

What will I build?

A fully responsive landing page with a header, hero section, feature cards, pricing and a footer, styled with Flexbox, Grid and media queries.

Anmol Sharma
Written by Anmol Sharma

Freelance UI/UX designer and web developer. 6 years, 50+ projects, clients in 30 countries. Hire me.