Learn CSS

Master CSS from the ground up through hands-on challenges. Write real code, see instant results, level up.

Sign in to start learning and track your progress

Your XP, streaks, and lesson completions are saved to your account.

Foundations

Colors, units, the box model, and typography — the building blocks of every stylesheet.

0%

0/10 lessons

1

Background Color

Set the background color of an element.

10 XP
2

Text Color and Size

Change the color and size of text.

10 XP
3

Padding

Add space inside an element.

10 XP
4

Margin

Add space outside an element.

10 XP
5

Borders

Add borders to elements.

10 XP
6

Width and Height

Control the dimensions of an element.

10 XP
7

Box Shadow

Add shadows to elements.

15 XP
8

Opacity and Overflow

Control transparency and content overflow.

15 XP
9

Gradients

Create smooth color transitions.

15 XP
10

Pseudo-classes

Style elements based on their state.

15 XP

Layout

Display, positioning, Flexbox, and Grid — control where everything goes.

0%

0/9 lessons

1

Display Property

Block, inline, inline-block, and none.

10 XP
2

Position: Relative and Absolute

Position elements relative to their parent.

15 XP
3

Flexbox: Centering

Center content perfectly with Flexbox.

15 XP
4

Flexbox: Row Layout

Arrange items in a horizontal row with spacing.

15 XP
5

Flexbox: Wrapping

Let flex items wrap to the next line.

15 XP
6

CSS Grid: Basic Grid

Create a grid layout with rows and columns.

15 XP
7

CSS Grid: Spanning Cells

Make grid items span multiple columns or rows.

20 XP
8

Grid: Place Items

Center grid items with a single property.

10 XP
9

Sticky Positioning

Make an element stick while scrolling.

15 XP

Visual Effects

Transforms, transitions, gradients, and filters — make things move and look stunning.

0%

0/8 lessons

1

Transform: Rotate and Scale

Rotate and scale elements.

15 XP
2

Transitions

Animate property changes smoothly.

15 XP
3

Radial Gradients

Create circular gradient effects.

15 XP
4

Clip Path

Clip elements into shapes.

20 XP
5

Pseudo-elements

Create extra layers with ::before and ::after.

20 XP
6

Multiple Backgrounds

Layer multiple backgrounds on one element.

20 XP
7

CSS Filters

Apply visual filters like blur and brightness.

15 XP
8

Conic Gradients

Create pie charts and color wheels.

20 XP

Advanced

Animations, responsive design, custom properties, and modern CSS — the skills that set you apart.

0%

0/8 lessons

1

Custom Properties (CSS Variables)

Define and use reusable values.

15 XP
2

Keyframe Animations

Create multi-step animations.

20 XP
3

Aspect Ratio

Maintain proportions without padding hacks.

10 XP
4

The :has() Selector

Style parents based on their children.

20 XP
5

CSS Nesting

Nest selectors like Sass, natively.

15 XP
6

Container Queries

Style based on parent size, not viewport.

25 XP
7

Scroll Snap

Create smooth snap-to-item scrolling.

20 XP
8

color-mix()

Blend colors dynamically in CSS.

20 XP

Ready for Real Battles?

Once you've completed the tracks, test your skills against real CSS challenges.