Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

Knowledge base — CSS

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 899

CSS

Navigation and links in CSS

CSS controls the appearance of links and their interaction states, not the navigation destination itself. Learn link selectors, visible focus, and highlighting the element addressed by a URL fragment.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

CSS positioning and stacking

Positioning determines a box's location and participation in normal flow. Stacking determines which overlapping box appears in front. Understanding containing blocks and stacking contexts helps you use position and z-index correctly.

Intermediate · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

Print styles

Print styles adapt a document for printing or print preview using @media print. They can hide navigation, change text presentation, and specify page margins and preferences for breaking content across pages.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

Progressive enhancement in CSS

Progressive enhancement starts with a usable baseline, then adds optional styles according to supported features. Missing enhancements should not prevent access to the content.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

Responsive design

Responsive design adapts a layout to the available space instead of assuming one fixed page size. CSS supports this through flexible layouts and conditional rules, such as @media queries based on viewport width.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

CSS security: safe embedding and links

Safe CSS embedding requires control over rules and resource addresses, not just valid syntax. Keep trusted styles separate from user data, and do not treat a link’s appearance or its :visited state as a security guarantee.

Intermediate · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

CSS selectors

CSS selectors determine which elements a style rule matches. They combine conditions about an element’s type, class, ID, attributes, or state with relationships in the document tree.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

Document semantics and CSS

Document semantics describes what elements mean. CSS controls their presentation; changing display does not change the meaning defined by the document language.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

Tables and relationships in CSS

The CSS table model arranges cells into related rows and columns. HTML describes the data and header relationships, while CSS controls presentation: borders, spacing, caption placement, and width calculation.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

Typography and text in CSS

CSS typography covers font selection and text layout: font size and weight, line height, spacing, alignment, and wrapping. Distinguishing font properties from layout properties helps you predict inheritance and text behavior.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

CSS values, functions, and units

A CSS value must match the syntax of its property. Learn the difference between numbers, dimensions, and percentages, the basics of relative and absolute units, and calculations with calc(), min(), max(), and clamp().

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

The font-display descriptor: swap in @font-face

The `swap` value keeps the invisible-text period brief and sets no deadline for a successfully loaded web font to replace the visible fallback.

Advanced · Current CSS specifications; browser support varies by feature
CSS

DevTools: CSS inspector, Computed styles, and the box model

Find which CSS declarations affect an element, read its property values and dimensions, and test a forced pseudo-class state and temporary style edits.

Basic · Browser DevTools workflow; UI and feature availability vary by browser and version
CSS

format() in the @font-face src descriptor

`format()` identifies the expected format of one font source so the browser can skip an unsupported source without fetching its data.

Advanced · Current CSS specifications; browser support varies by feature
CSS

`format()` in the `@font-face` `src` descriptor

`format()` tells the browser what format to expect from one font source, so it can skip an unsupported source without downloading it.

Intermediate · Current CSS specifications; browser support varies by feature
CSS

Legacy `clip: rect(0 0 0 0)` in `.sr-only`

Four zero offsets in legacy `clip: rect(0 0 0 0)` leave no visible area. An `.sr-only` utility uses that effect to hide text visually while keeping it available to screen readers.

Advanced · Current CSS specifications; browser support varies by feature
CSS

Legacy CSS `clip`: visually hiding text with `rect()`

Learn how the deprecated `clip` property uses a zero-area `rect()` to hide text visually and how it differs from modern `clip-path`.

Intermediate · Current CSS specifications; browser support varies by feature
CSS

CSS comments /* */ and declaration structure

Use `/* */` to leave notes in CSS, and learn to read a declaration as a property name, a colon, and a value. Semicolons separate declarations in a block.

Basic · Current CSS specifications; browser support varies by feature
CSS

`local()` and `format()` in `@font-face` `src`

Order font sources in `src` and distinguish `local()`, which looks up an installed face, from `format()`, which hints at the format of a URL resource.

Intermediate · Current CSS specifications; browser support varies by feature
CSS

abs() — absolute value

abs() returns a calculation’s non-negative magnitude while preserving its CSS numeric type.

Intermediate · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

acos() — inverse cosine

acos() maps a cosine in the domain −1 through 1 to a principal angle from 0 through 180 degrees.

Intermediate · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
CSS

alpha() — relative alpha-channel change

`alpha()` creates a relative color that keeps the origin color channels and replaces or calculates only its alpha channel.

Advanced · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required