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.
CKTIS / CSS
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
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.
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.
The `will-change` property warns the browser about upcoming changes. It neither starts animations nor guarantees faster rendering.
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.
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.
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.
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.
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.
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.
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.
The `zoom` property scales an element and affects layout. It accepts the keyword `normal`, a nonnegative number, or a nonnegative percentage.
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.
`::-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.
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.
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.
This pseudo-class matches the element that scopes an active view transition if the transition has at least one of the specified types.
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.
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.
The [attr] selector matches elements with the named attribute, regardless of its value, including an empty value.
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.
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.
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.
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.
The ::checkmark pseudo-element styles the checked indicator of checkboxes, radio buttons, and option elements using basic control appearance.