CSS At-Rules

Última atualização: 2026-09-13

CSS At-Rules

At-rules are CSS statements that instruct the engine with a keyword preceded by @, e.g. @media, @keyframes.

Conditional

CSS At-RulesDescription
@mediaApplies styles only when a media query condition is true.
@supportsApplies styles only when the browser supports a given feature.
@containerApplies styles based on the size of a query container.

Animation

CSS At-RulesDescription
@keyframesDefines the steps of a CSS animation sequence.

Structure

CSS At-RulesDescription
@importImports another stylesheet into the current one.
@charsetSpecifies the character encoding of the stylesheet.
@layerDeclares a cascade layer to control specificity order.
@namespaceDeclares an XML namespace for selectors.

Fonts

CSS At-RulesDescription
@font-faceDefines a custom font to be downloaded and used.

Print

CSS At-RulesDescription
@pageSets properties of printed pages (size, margins).
Web-Tutorial.com

Equipe Técnica Web-Tutorial

Uma plataforma de tutoriais mantida por diversos desenvolvedores. Cada tutorial é escrito e revisado por profissionais da área correspondente. Trabalhamos para manter nosso conteúdo preciso e confiável — se encontrar algum problema, avise-nos.

100%