GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • MDN
  • HTML: Markup language
  • Elements
  • Global attributes
  • Attributes
  • See all…
  • Responsive images
  • HTML cheatsheet
  • Date & time formats
  • See all…
  • SVG
  • MathML
  • XML
  • CSS: Styling language

This view

  • Original page
  • New address

GeezerVison is showing developer.mozilla.org — CSS at-rules - CSS | MDN

CSS at-rules

At-rules are CSS statements that instruct CSS how to behave. They are used to group and structure style rules and other at-rules, declare style information not directly associated with selected content, and manage syntactic constructs such as imports and namespaces keyword mappings. They begin with an at-sign, @ (U+0040 COMMERCIAL AT), followed by an identifier.

Index of at-rules and at-rule descriptors

  • @charset
  • @color-profile
  • @container
  • @counter-style
    • additive-symbols
    • fallback
    • negative
    • pad
    • prefix
    • range
    • speak-as
    • suffix
    • symbols
    • system
  • @custom-media
  • @document
  • @font-face
    • ascent-override
    • descent-override
    • font-display
    • font-family
    • font-feature-settings
    • font-stretch
    • font-style
    • font-variation-settings
    • font-weight
    • line-gap-override
    • size-adjust
    • src
    • unicode-range
  • @font-feature-values
    • font-display
  • @font-palette-values
    • base-palette
    • font-family
    • override-colors
  • @function
  • @import
  • @keyframes
  • @layer
  • @media (see list of media features in the next section)
  • @namespace
  • @page
    • page-orientation
    • size
  • @position-try
  • @property
    • inherits
    • initial-value
    • syntax
  • @scope
  • @starting-style
  • @supports
  • @view-transition

Index of media features

  • -moz-device-pixel-ratio
  • -webkit-animation
  • -webkit-device-pixel-ratio
  • -webkit-transform-2d
  • -webkit-transform-3d
  • -webkit-transition
  • any-hover
  • any-pointer
  • aspect-ratio
  • color
  • color-gamut
  • color-index
  • device-aspect-ratio
  • device-height
  • display-mode
  • dynamic-range
  • forced-colors
  • grid
  • height
  • horizontal-viewport-segments
  • hover
  • inverted-colors
  • monochrome
  • orientation
  • overflow-block
  • overflow-inline
  • pointer
  • prefers-color-scheme
  • prefers-contrast
  • prefers-reduced-data
  • prefers-reduced-motion
  • prefers-reduced-transparency
  • resolution
  • scan
  • scripting
  • shape
  • update
  • vertical-viewport-segments
  • video-dynamic-range
  • width

Specifications

Specification
CSS Syntax Module Level 3

See also

  • CSS at-rule functions
  • Nesting at-rules
  • CSS syntax module
  • CSS conditional rules module

Help improve MDN

Learn how to contribute

This page was last modified on Dec 2, 2025 by MDN contributors.

View this page on GitHub • Report a problem with this content
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.