CSS · Beginner
CSS Fundamentals
Learn CSS from the ground up through interactive, hands-on sessions.
- Units
- 4
- Lessons
- 20
- Practice questions
- 22
- Minutes
- ~300

Start learning today
Try every course free for 7 days. After that, this course is in Learnix Starter (KES 299/month).
Create free account Log inHow the lessons work
Clear explanations
Step-by-step lessons in plain language
107 in this course
Worked examples
Real code and examples you can copy and run
78 in this course
Quick checks
Test your understanding as you go
49 in this course
Fill the blank
Recall the key commands and syntax
5 in this course
Hands-on workspace
A practical task at the end of every lesson
5 in this course
Syllabus
-
1.1
Getting Started with CSS
CSS · Session 1
-
1.2
The Box Model & Display
CSS · Session 2
-
1.3
Typography & Colors
CSS · Session 3
-
1.4
Units & Sizing: px, rem, %, vw and clamp()
Choose the right unit for each job so text scales for readers, layouts adapt to screens, and headings resize smoothly.
-
1.5
Cascade, Specificity & Pseudo-classes
CSS · Session 4
-
2.1
Flexbox I: The Basics
CSS · Session 5
-
2.2
Flexbox II: Real Patterns
CSS · Session 6
-
2.3
Positioning
CSS · Session 7
-
2.4
Grid I: Rows and Columns
CSS · Session 8
-
2.5
Grid II & Responsive Design
CSS · Session 9
-
3.1
Media Queries & Container Queries
Write mobile-first breakpoints, respond to user preferences, and make components adapt to their container, not just the screen.
-
3.2
Powerful Selectors: :has(), :is(), :not() & nth-child
Select exactly what you need: parents that contain something, every other row, form fields in error, and more, without extra classes.
-
3.3
CSS Custom Properties (Variables)
Instead of retyping the same color or spacing value in twenty different places, define it ONCE as a variable: change the one definition, and every place using it updates automatically.
-
3.4
Dark Mode & Theming
Support light and dark themes with CSS variables and prefers-color-scheme, plus a manual toggle.
-
3.5
CSS Frameworks: Tailwind & Bootstrap
Understand utility-first CSS with Tailwind and component frameworks like Bootstrap, and when each makes sense.
-
4.1
Gradients, Shadows & Filters
Flat single colors are fine, but a bit of depth and light goes a long way. Gradients, box-shadow, text-shadow and filter are the tools that add that final layer of visual polish.
-
4.2
2D Transforms
transform lets you move, resize, rotate or skew an element visually, without pushing any of the surrounding content around, and cheap enough for the browser to animate smoothly.
-
4.3
Transitions & Hover Effects
Without a transition, a style change on :hover happens instantly, like a light switch. With transition, the same change becomes a smooth glide instead of a jarring jump.
-
4.4
Keyframe Animations
A transition animates between two states triggered by something (like :hover). A keyframe animation is a full choreographed sequence that can run automatically, loop forever, and move through many steps, no trigger required.
-
4.5
Putting It All Together
CSS · Session 10 · Capstone
Earn a verifiable certificate
Finish every lesson and pass the 20-question final exam (70% to pass). Each certificate has a unique number anyone can check online.