60 Topics
Chapter•180 Minutes

Top CSS Questions & Practice

Master 50+ essential CSS questions ranging from core fundamentals to advanced layout, browser behavior, accessibility, performance, and real-world scenarios.

Junior Fundamentals — Question 1

Test your understanding of the CSS box model.

Knowledge Check

Which four areas make up the CSS box model?

Junior Fundamentals — Question 2

Test your understanding of box sizing.

Knowledge Check

What does box-sizing: border-box do?

Junior Fundamentals — Question 3

Test your knowledge of selectors.

Knowledge Check

Which selector targets an element with class button?

Junior Fundamentals — Question 4

Test basic CSS inheritance.

Knowledge Check

Which property normally inherits from a parent?

Junior Fundamentals — Question 5

Test pseudo-class knowledge.

Knowledge Check

Which selector targets an element while the pointer is over it?

Junior Fundamentals — Question 6

Test pseudo-element knowledge.

Knowledge Check

Which is a pseudo-element?

Junior Fundamentals — Question 7

Test display behavior.

Knowledge Check

What happens when an element has display: none?

Junior Fundamentals — Question 8

Test units.

Knowledge Check

What does rem normally reference?

Junior Fundamentals — Question 9

Test color syntax.

Knowledge Check

Which is valid modern CSS RGB syntax with alpha?

Junior Fundamentals — Question 10

Test cascade fundamentals.

Knowledge Check

When two declarations have equal specificity, which normally wins?

Core Layout — Question 11

Test Flexbox axis knowledge.

Knowledge Check

With flex-direction: row, what is the main axis?

Core Layout — Question 12

Test Flexbox alignment.

Knowledge Check

Which property primarily distributes free space along the Flexbox main axis?

Core Layout — Question 13

Test Grid fundamentals.

Knowledge Check

What is the primary distinction between Grid and Flexbox?

Core Layout — Question 14

Test Grid sizing.

Knowledge Check

What does 1fr represent in a Grid track?

Core Layout — Question 15

Test responsive Grid knowledge.

Knowledge Check

Which pattern is commonly used for automatically responsive Grid columns?

Core Layout — Question 16

Test positioning.

Knowledge Check

What is a common reason to set position: relative on a parent?

Core Layout — Question 17

Test sticky positioning.

Knowledge Check

Which use case is suitable for position: sticky?

Core Layout — Question 18

Test z-index.

Knowledge Check

Why does a huge z-index not always place an element above everything?

Core Layout — Question 19

Test Flexbox sizing.

Knowledge Check

What does flex-basis control?

Core Layout — Question 20

Test Grid areas.

Knowledge Check

Which property assigns an element to a named Grid area?

Responsive & Modern CSS — Question 21

Test responsive design principles.

Knowledge Check

What should primarily determine a responsive breakpoint?

Responsive & Modern CSS — Question 22

Test mobile-first design.

Knowledge Check

What is mobile-first CSS?

Responsive & Modern CSS — Question 23

Test container queries.

Knowledge Check

What does a container query respond to?

Responsive & Modern CSS — Question 24

Test clamp().

Knowledge Check

What does clamp(1rem, 3vw, 2rem) mean?

Responsive & Modern CSS — Question 25

Test viewport units.

Knowledge Check

What does 100dvh represent?

Responsive & Modern CSS — Question 26

Test aspect ratio.

Knowledge Check

What does aspect-ratio: 16 / 9 provide?

Responsive & Modern CSS — Question 27

Test feature queries.

Knowledge Check

What does @supports provide?

Responsive & Modern CSS — Question 28

Test modern pseudo-classes.

Knowledge Check

What makes :has() different from many traditional selectors?

Responsive & Modern CSS — Question 29

Test specificity of :where().

Knowledge Check

What specificity does :where() contribute?

Responsive & Modern CSS — Question 30

Test :is() specificity.

Knowledge Check

How does :is() contribute specificity?