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

widows — minimum lines after a break

The `widows` property sets the minimum number of a block’s lines to keep together after a page or column break. It constrains fragmentation, not ordinary text wrapping.

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

width — an element’s preferred width

The width property specifies an element box’s preferred physical width. It accepts lengths, percentages, and auto, among other values; the final size also depends on box sizing, constraints, and layout.

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

will-change — anticipating rendering changes

The `will-change` property warns the browser about upcoming changes. It neither starts animations nor guarantees faster rendering.

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

window-drag — window dragging region

window-drag defines an area for moving an application window, not a page element. The property comes from the CSS UI Level 4 working draft.

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

word-break — word-breaking rules

The word-break property controls permitted wrapping points between letters and within words. It adjusts rules for different writing systems and is distinct from emergency wrapping with overflow-wrap.

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

word-spacing — additional spacing between words

The word-spacing property changes the spacing added to word separators, not the spacing between letters. It is inherited; normal preserves the spacing supplied by the font.

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

writing-mode — text layout direction

The writing-mode property selects horizontal or vertical lines and the direction in which successive lines and blocks stack. It does not replace control over text direction or character orientation.

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

x — SVG horizontal coordinate

The CSS `x` property sets an SVG element's horizontal coordinate. It accepts a length or a percentage of the current SVG viewport's width.

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

y — vertical coordinate in SVG

The CSS `y` property sets the vertical position coordinate of selected SVG elements. It accepts a length or a percentage of the current SVG viewport height; it is not a general-purpose positioning property for HTML elements.

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

z-index — stacking order

The z-index property sets a box’s level within a stacking context. Larger numbers place it closer to the viewer, but only within the same context; a high value cannot let a descendant escape its ancestor’s stacking context.

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

zoom — scaling that affects layout

The `zoom` property scales an element and affects layout. It accepts the keyword `normal`, a nonnegative number, or a nonnegative percentage.

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

::-webkit-calendar-picker-indicator — date or time picker indicator

A nonstandard pseudo-element for styling the indicator that opens a native date or time picker. It targets part of the control, not the popup panel, and requires testing in the target browser.

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

WebKit number input spin-button pseudo-elements

`::-webkit-inner-spin-button` styles the inner spin control of a number input in supporting browsers. `::-webkit-outer-spin-button` targeted a separate control in a historical WebKit implementation. Neither selector is standard or portable.

Intermediate · Non-standard WebKit-prefixed CSS pseudo-elements. The outer selector is documented here for the historical WebKit implementation bundled with Qt 4.8; this does not establish support in current browsers.
CSS

:active — activation pseudo-class

The :active pseudo-class matches an element during user activation, such as while a mouse button is held down on a button. It describes a temporary state, not a persistent selection.

Basic · CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate
CSS

:active-view-transition — an active view transition

The :active-view-transition pseudo-class matches the scoping element of an active view transition: the document root for a document-scoped transition, or the element defining the scope for an element-scoped transition. It lets styles depend on that state without checking the transition type.

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

:active-view-transition-type() — select by transition type

This pseudo-class matches the element that scopes an active view transition if the transition has at least one of the specified types.

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

::after — generated content after an element's content

The ::after pseudo-element creates styleable content after an element's actual content, but inside the element. The content property specifies that content. The :after spelling is equivalent legacy syntax retained for compatibility.

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

:any-link — any hyperlink

The `:any-link` pseudo-class selects hyperlinks whether or not they have been visited. In HTML, it matches `a` and `area` elements with an `href` attribute.

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

Attribute presence selector

The [attr] selector matches elements with the named attribute, regardless of its value, including an empty value.

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

:autofill — a browser-autofilled input

The :autofill pseudo-class selects input elements filled automatically by the browser until the user changes their values. It lets you highlight that state; it does not simply mean that a field contains text.

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

::backdrop — background behind a top-layer element

The ::backdrop pseudo-element styles the background beneath an element rendered in the top layer, for example to dim a page behind a modal dialog.

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

::before — generated content before an element’s contents

The ::before pseudo-element creates styleable content before an element’s actual contents, inside that element. The content property specifies this content; :before is the backward-compatible spelling of the same pseudo-element.

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

:checked — checked form controls

The :checked pseudo-class matches currently checked checkboxes and radio buttons, as well as selected option elements. It follows the control’s current state rather than merely the presence of a checked attribute in HTML.

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

::checkmark — styling the checked indicator

The ::checkmark pseudo-element styles the checked indicator of checkboxes, radio buttons, and option elements using basic control appearance.

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