Styling

CSS.

Colors, grids, responsiveness and animations. Make your page look great.

CSS is a style language. It is responsible for everything you see on a page: colors, fonts, spacing, block layout, animations and how the site looks on a phone. The same HTML with different CSS turns into completely different sites.

  • 80 lessons
  • 16 modules
  • 4800 XP
Course illustration: CSS

Why you need it.

A page without CSS looks like a document from the nineties. Styles turn markup into a neat, convenient and beautiful interface: grids, colors, fonts, animations and responsiveness for any screen.

Analogy

Clothes and interior

If HTML is the skeleton of a building, CSS is the finishing and the furniture: wall color, ceiling height, where the cabinets stand. By changing styles you don’t touch the structure, you only decide how everything looks. That’s why a design can be redone without rewriting the page.

What you will learn.

1

Select the right elements

Selectors, the cascade, inheritance and specificity: you understand which rule wins and why.

2

Work with color and text

HEX, RGB, HSL, fonts, spacing and neat typography.

3

Control sizes and spacing

The box model, px, %, rem, vw and vh units, backgrounds, gradients and shadows.

4

Build layouts with Flexbox and Grid

Alignment in a row and a column, two-dimensional grids, grid-template-areas and choosing between flex and grid.

5

Build responsive sites

Mobile first, media queries, flexible images and responsive typography.

6

Bring the interface to life

The :hover and :focus states, pseudo-elements, transform, @keyframes, CSS variables and dark theme.

What you will build.

Cards and panels

Practice in every module: a product card, badges, navigation, a gallery.

Responsive page layout

A grid that rearranges itself for phone, tablet and computer screens.

Final landing page

The final project: you put everything you learned into one beautiful page.

All topics in order.

16 modules, 80 lessons. Lessons unlock one by one: the next one opens after you finish the current one. Completed lessons are marked with a check.

1First stepsWhat CSS is and how to attach styles.5 lessons
300 XP
  1. What CSS is and how it works50 XP
  2. Three ways to attach CSS50 XP
  3. Syntax: selector, property, value50 XP
  4. Comments and errors in CSS50 XP
  5. DevTools: viewing and editing styles100 XP
2SelectorsHow to pick the elements you need on a page.5 lessons
300 XP
  1. Tag, class and id selectors50 XP
  2. Grouping and descendants50 XP
  3. Child and sibling elements50 XP
  4. Attribute selectors50 XP
  5. Practice: a business-card page100 XP
3Cascade and inheritanceWho wins when rules conflict.5 lessons
300 XP
  1. Inheritance50 XP
  2. The cascade and rule order50 XP
  3. Selector specificity50 XP
  4. !important and style resets50 XP
  5. Practice: fixing conflicting styles100 XP
4Colors and textColor, fonts and beautiful typography.5 lessons
300 XP
  1. Colors: names, HEX, RGB, HSL50 XP
  2. Fonts: family, size, weight50 XP
  3. Text: spacing, alignment, decoration50 XP
  4. Web fonts and fallback families50 XP
  5. Practice: article typography100 XP
5The box modelWhat any element consists of.5 lessons
300 XP
  1. All elements are boxes50 XP
  2. padding and margin50 XP
  3. border and border-radius50 XP
  4. box-sizing50 XP
  5. Practice: a product card100 XP
6Sizes and unitspx, %, rem and controlling sizes.5 lessons
300 XP
  1. Units of measurement: px, %, em, rem50 XP
  2. vw, vh, min-width and max-width50 XP
  3. Overflow: overflow50 XP
  4. display: block, inline, inline-block, none50 XP
  5. Practice: a user profile100 XP
7Background and stylingBackgrounds, gradients and shadows.5 lessons
300 XP
  1. Background: color and image50 XP
  2. Background size, position and repeat50 XP
  3. Gradients50 XP
  4. Shadows: box-shadow and text-shadow50 XP
  5. Practice: a home page banner100 XP
8PositioningPlacing elements exactly.5 lessons
300 XP
  1. position: static and relative50 XP
  2. position: absolute50 XP
  3. position: fixed and sticky50 XP
  4. z-index and layer order50 XP
  5. Practice: badges and a pinned header100 XP
9Flexbox. Part 1Lining elements up in a row and a column.5 lessons
300 XP
  1. What a flex container is50 XP
  2. flex-direction and flex-wrap50 XP
  3. justify-content50 XP
  4. align-items and align-self50 XP
  5. Practice: a navigation bar100 XP
10Flexbox. Part 2Flexible sizes and complex layouts.5 lessons
300 XP
  1. gap: spacing50 XP
  2. flex-grow, flex-shrink and flex-basis50 XP
  3. Centering and order50 XP
  4. Nested flex containers50 XP
  5. Practice: cards in a row100 XP
11Grid. Part 1A two-dimensional grid.5 lessons
300 XP
  1. What grid is50 XP
  2. grid-template-columns and the fr unit50 XP
  3. repeat() and minmax()50 XP
  4. Placement: grid-column and grid-row50 XP
  5. Practice: a gallery100 XP
12Grid. Part 2 and layoutsComplex page layouts.5 lessons
300 XP
  1. grid-template-areas50 XP
  2. auto-fit and auto-fill50 XP
  3. Alignment in grid50 XP
  4. Flex or grid: which to choose50 XP
  5. Practice: a page layout100 XP
13ResponsivenessA site that looks good everywhere.5 lessons
300 XP
  1. Viewport and the mobile-first approach50 XP
  2. Media queries50 XP
  3. Flexible images and aspect ratios50 XP
  4. Responsive typography and clamp()50 XP
  5. Practice: a responsive landing page100 XP
14Effects and statesHover, focus and pseudo-elements.5 lessons
300 XP
  1. Pseudo-classes :hover, :focus, :active50 XP
  2. Structural pseudo-classes: :first-child and :nth-child50 XP
  3. Pseudo-elements ::before and ::after50 XP
  4. Smooth transitions: transition50 XP
  5. Practice: interactive buttons and cards100 XP
15Animations and variablesMotion and a unified style through variables.5 lessons
300 XP
  1. transform: shift, rotate, scale50 XP
  2. Animations: @keyframes50 XP
  3. CSS variables50 XP
  4. Dark and light themes50 XP
  5. Practice: an animated indicator100 XP
16Mastery and projectsClean CSS, accessibility and final projects.5 lessons
300 XP
  1. CSS organization: naming and structure50 XP
  2. Style accessibility50 XP
  3. Project: landing page. Part 150 XP
  4. Project: landing page. Part 250 XP
  5. Final project: a portfolio page100 XP

Is this course right for you?

Who it suits

  • People who already know the HTML basics
  • People who want sites to look modern
  • Future front-end developers

What you need to know and have

  • It’s best to finish HTML first: CSS styles what you can mark up
  • No JavaScript knowledge needed
  • Code is checked right on the lesson page: you see the result immediately

Every lesson is four steps.

Theory, questions, practice and a final task. The Nox-AI assistant is always nearby: it gives hints but doesn’t solve the task for you.

  1. 1Theory

    A short explanation with examples.

  2. 2Check yourself

    Questions to check understanding.

  3. 3Practice

    You write code — checking is instant.

  4. 4Challenge

    Lesson summary and XP points.

More about how a lesson works ›    What Nox-AI can do ›

About the CSS course.

Can I learn CSS without HTML?

You can, but it will be hard: styles are applied to HTML elements. That’s why we recommend finishing at least the main part of the HTML course first.

How is code checked?

Your CSS is applied to a real page in a hidden window, and the trainer checks the resulting styles: colors, sizes, block layout. That way any correct solution is accepted, not just one prepared answer.

What’s next?

JavaScript — it adds behavior to pages: buttons, forms, data.

Ready to start?

Open the course and complete the first lesson. Your progress is saved in your account.

Courses