CSS: Styling Websites
Style the HTML website to be readable, responsive, and consistent.
12 chapters · 96 lessonsBeginner friendlyFreeRuns in the browser
What you will learn
- Style elements precisely.
- Understand spacing and dimensions.
- Make content pleasantly readable.
- Arrange elements in a single direction.
- Build two-dimensional layouts.
- Support different viewports.
- Design reusable interfaces.
- Implement a design completely.
- Make websites lively and dynamic through keyframe animations, transformations, and visual filters.
- Make websites accessible to all users and keep CSS structures maintainable.
- Organize CSS files scaleably, optimize load times, and apply best practices for large projects.
- Apply all learned CSS knowledge in a complete, professional, responsive, and accessible web application.
Course content
Chapter 1 Styling Basics
Style elements precisely.
- Linking a Stylesheet
- Selectors and Classes
- Colors and Backgrounds
- Inheritance
- Debugging Cascade and Specificity
- First Consistent Content Card
- Selector Fill-in-the-Blank
- Specificity Challenge
Chapter 2 Box Model and Sizing
Understand spacing and dimensions.
- Content, Padding, Border, Margin
- Box Sizing
- Absolute and Relative Units
- Width, Max-Width, and Overflow
- Debugging Spacing Errors
- Preparing a Clean Page Grid
- Units Fill-in-the-Blank
- Box Model Challenge
Chapter 3 Typography and Hierarchy
Make content pleasantly readable.
- Fonts and Fallbacks
- Font Size and Line Height
- Text Width and Alignment
- Heading Scale
- Contrast and Link States
- Design a Small Editorial Page
- Typography Fill-in-the-Blank
- Readability Challenge
Chapter 4 Flexbox
Arrange elements in a single direction.
- Flex Container and Axes
- Alignment and Spacing
- Growth and Shrinking
- Wrapping
- Fix Broken Navigation
- Responsive Toolbar and Card Row
- Flexbox Fill-in-the-Blank
- Flexbox Layout Challenge
Chapter 5 Grid
Build two-dimensional layouts.
- Columns and Rows
- fr, gap, and minmax
- Placing Items
- Automatic Card Grids
- Nested Layouts
- Design a Product Overview
- Grid Fill-in-the-Blank
- Grid Master Challenge
Chapter 6 Responsive Websites
Support different viewports.
- Mobile First
- Media Queries
- Flexible Images
- Fluid Typography
- Debugging Small and Large Views
- Refactor Detail Page to be Responsive
- Media Query Fill-in-the-Blank
- Responsive Challenge
Chapter 7 Components and States
Design reusable interfaces.
- CSS Variables as Tokens
- Buttons and Forms
- Hover, Focus, and Active States
- Positioning and Layers
- Transition Plus Reduced Motion
- Build a Small Component Set
- States Fill-in-the-Blank
- Component Challenge
Chapter 8 Finalizing the Website
Implement a design completely.
- Defining Design Goals and Tokens
- Header and Hero
- Content and Product Sections
- Footer and Forms
- Checking Mobile, Focus, and Overflow
- Presenting the Finished Website
- Project Fill-in-the-Blank
- Final Challenge
Chapter 9 Animations and Visual Effects
Make websites lively and dynamic through keyframe animations, transformations, and visual filters.
- 2D and 3D Transformations
- Transitions and Timing Functions
- @keyframes and Animation Timelines
- Visual Filters and Backdrop Effects
- Debugging Choppy Animations and Performance
- Interactive Hero Banner with Animations
- Animation Fill-in-the-Blank
- Effect Master Challenge
Chapter 10 Accessibility and Clean Code
Make websites accessible to all users and keep CSS structures maintainable.
- Accessible Focus Indicators
- Color Contrast and Readability
- Screen-reader-only Content
- Reduced Motion and User Preferences
- Debugging Accessibility Errors in CSS
- Accessible Form Design
- A11y and Clean Code Fill-in-the-Blank
- Inclusive UI Component Challenge
Chapter 11 Performance and CSS Architecture
Organize CSS files scaleably, optimize load times, and apply best practices for large projects.
- Modular Structure and @import
- BEM Naming Convention
- CSS File Size and Rendering Blocks
- Reducing Unused Code and Specificity Debt
- Debugging Architecture Errors and High Specificity
- Structured Design System Foundation
- Architecture and BEM Fill-in-the-Blank
- Legacy CSS Refactoring Challenge
Chapter 12 Capstone Project and Outlook
Apply all learned CSS knowledge in a complete, professional, responsive, and accessible web application.
- Capstone Planning and Semantic Layout
- Design Tokens and Global Architecture
- Complex Grid and Flexbox Dashboard
- Interactive Components with States and Animations
- Fixing Responsive Bugs and Layout Crashes
- Implementing a Complete Responsive Web App
- Capstone Fill-in-the-Blank on Best Practices
- Final CSS Master Challenge
How each lesson works
No hour-long videos. Each lesson is a short loop you complete yourself, until the idea sits.
Read
A short explanation and one clear task. Just enough to get going.
Write
You type the code yourself, in a real editor right in the browser.
Run
Run it and see what your program actually does, straight away.
Check
Check tells you whether the task is solved, and what is missing if not.
Good to know
- Nothing to install: editor, output and checks run in your browser tab.
- Start as a guest without an account; your progress stays on this device.
- A free Ostrae account syncs progress and settings across devices and unlocks the MICA coach.