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

@right-middle — page margin box

@right-middle defines the right / middle page margin box in paged media; it is generated inside @page rather than matching an element.

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

@right-top — page margin box

@right-top defines the right / top page margin box in paged media; it is generated inside @page rather than matching an element.

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

@scope — selector scope with a lower boundary

The @scope rule restricts nested style-rule matching to a subtree or fragment defined by roots and optional lower limits.

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

@starting-style — transition starting style

The @starting-style rule supplies a before-change style for an element that had no previously rendered style.

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

@supports — conditional CSS rules

The @supports rule activates nested styles only when the engine satisfies the stated support condition.

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

@top-center — page margin box

@top-center defines the top / center page margin box in paged media; it is generated inside @page rather than matching an element.

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

@top-left — page margin box

@top-left defines the top / left page margin box in paged media; it is generated inside @page rather than matching an element.

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

@top-left-corner — page margin box

@top-left-corner defines the top-left / corner page margin box in paged media; it is generated inside @page rather than matching an element.

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

@top-right — page margin box

@top-right defines the top / right page margin box in paged media; it is generated inside @page rather than matching an element.

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

@top-right-corner — page margin box

@top-right-corner defines the top-right / corner page margin box in paged media; it is generated inside @page rather than matching an element.

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

@view-transition — cross-document transitions

@view-transition enables visual transitions for eligible navigations between same-origin documents.

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

Accessibility in CSS

Accessibility in CSS means designing presentation that preserves visible focus and accommodates user needs. It is a practice spanning multiple modules, not a property named accessibility.

Basic · CSS modules; Chromium 152 is the scope of per-example verification, not a general compatibility guarantee.
CSS

CSS specification architecture and feature auditing

CSS evolves as a set of modules rather than one specification with a shared version number. An audit connects the definition index, defining module, pinned compatibility data, and a concrete example test without equating specification inclusion with browser support.

Intermediate · CSS modules; CSSWG indexes identify definitions, pinned compatibility data records implementation support, and the included cascade-layer example passed in isolated Chromium 157.0.8103.51.
CSS

CSS box model and normal flow

The box model describes the content area and its surrounding padding, border, and margin. Learn how box-sizing affects dimensions and why the margins of adjacent blocks do not always add together.

Basic · Specification scope: CSS Box Model Level 3, CSS Box Sizing Level 3, CSS Backgrounds and Borders Level 3, and CSS Level 2. The usage example’s output was verified in Chromium 157.0.8103.51; this test does not establish browser compatibility or minimum supported versions.
CSS

CSS cascade and specificity

The cascade chooses a declaration for a particular property on an element. Specificity is only one criterion: origins, !important, and layers can settle a conflict before selector specificity is compared.

Intermediate · CSS Cascading and Inheritance Levels 5 and 6 and Selectors Level 4 (editor’s drafts). The usage example’s console output was verified in Chromium 157.0.8103.51; this does not establish broader browser compatibility.
CSS

Colors and blending in CSS

Values of type <color> specify colors for text, backgrounds, and borders. An alpha channel controls a color’s transparency, while blend modes describe how its components combine with a backdrop. These are different mechanisms that can work together.

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

CSS custom properties and themes

Custom properties store values consumed by var(). The cascade and inheritance let you share design tokens and override them locally, for example to create a dark theme.

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

Flexbox — flexible one-dimensional layout

Flexbox arranges items along one axis, distributes available space, and controls alignment. Learn about its container, layout axes, wrapping, and the flex shorthand.

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

Forms and controls in CSS

CSS defines the presentation of form controls and responds to their state through pseudo-classes. Preserve HTML semantics and visible focus; native control rendering can differ between browsers and operating systems.

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

Grid and subgrid

CSS Grid arranges items in rows and columns. Subgrid lets a nested grid share its parent grid’s tracks in one or both axes, allowing content inside different elements to align.

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

CSS resource loading and performance

CSS can reference additional stylesheets and fonts. Learn the distinction between fetching a resource and using it, and how to reduce network dependencies without promising a fixed rendering time.

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

Images and media in CSS

CSS controls how images and media content are displayed, from background images and gradients to fitting the content of img and video elements. The key distinction is between an element’s size, its content’s size, and its decorative background.

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

Metadata and SEO in relation to CSS

CSS describes document presentation, not document metadata or search-engine directives. Distinguish content appearance, HTML semantics, and document metadata; styling alone does not establish SEO outcomes.

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

Motion and scrolling in CSS

CSS motion includes transitions between states, keyframe animations, and effects linked to scrolling. Distinguish changes to an element’s appearance from changes to scroll position, and respect the user’s preference for reduced motion.

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