← CSSChallenge.com

Coding · Facts & stats

CSS facts & stats

7 fact-checked facts about CSS and styling web pages, each with the reason behind it. 5 more are in today's round and join this page after it closes.

Play today's round

The basics

What does CSS stand for?

AnswerCascading Style Sheets

CSS controls the look of HTML pages.

Which symbol selects an element by its id in CSS?

Answer#

#header selects the element with id 'header'.

Going deeper

In the CSS box model, what sits between the content and the border?

AnswerPadding

Padding is space inside the border; margin is outside.

Which declaration turns an element into a flex container?

Answerdisplay: flex

display: flex enables flexbox for its children.

Which CSS unit is relative to the root element's font size?

Answerrem

rem stands for 'root em'.

Expert level

Which property controls the stacking order of positioned elements?

Answerz-index

Higher z-index values appear on top.

What does position: sticky do?

AnswerActs like relative positioning until a scroll threshold, then sticks in place

Sticky elements stick once the scroll position reaches the offset.

Know these cold?Today's round is five questions like these, 20 seconds each. Your streak and level follow you to every arena.Play today's round