What You'll Learn in CSS
Beginner
Introduction
Learn what CSS is and how it styles the web.
Setup
Add CSS to a page with inline, internal, and external styles.
Syntax
Understand rules, declarations, properties, and values.
Selectors
Target elements with type, class, ID, and attribute selectors.
Colors
Named colors, hex, rgb(), hsl(), and opacity.
Units & Values
Absolute and relative units like px, %, em, rem, vw, and vh.
The Box Model
Content, padding, border, and margin explained.
Text & Fonts
Style text with font, weight, spacing, and alignment.
Backgrounds
Background colors, images, size, and position.
Borders & Border Radius
Style borders and create rounded corners.
Margin & Padding
Control spacing inside and outside elements.
The display Property
block, inline, inline-block, and none.
Intermediate
Positioning
static, relative, absolute, fixed, and sticky.
Flexbox
Build one-dimensional layouts with Flexbox.
CSS Grid
Build two-dimensional layouts with CSS Grid.
Overflow & Visibility
Control content that exceeds its container.
z-index & Stacking
Control the stacking order of overlapping elements.
Pseudo-classes
Style elements based on state, like :hover and :nth-child.
Pseudo-elements
Style parts of an element with ::before and ::after.
Specificity & Cascade
Understand how CSS decides which rule wins.
Combinators
Descendant, child, sibling, and grouped selectors.
Advanced
Responsive Design
Media queries and mobile-first design.
CSS Variables
Reusable values with custom properties.
Transitions
Animate property changes smoothly over time.
Animations
Build multi-step animations with @keyframes.
Transforms
Move, rotate, scale, and skew elements.
Shadows & Filters
box-shadow, text-shadow, and the filter property.
Gradients
Linear, radial, and conic gradients.
CSS Functions
calc(), clamp(), min(), and max().
Best Practices
Organize and scale CSS with sensible conventions.
Finished Learning CSS?
Test your knowledge with MCQs, output-based questions, and interview questions.