CSS inset Property Reference

The CSS inset property is a standard property in CSS Logical Properties and Values. Review its formal syntax, computed behavior, and practical declarations.

CSS inset Property Reference

The CSS inset property is a standard property in CSS Logical Properties and Values. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

inset overview

The CSS inset property is a standard property in CSS Logical Properties and Values. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

inset formal syntax
FieldValue
Formal syntax<'top'>{1,4}
Initial valuetop, bottom, left, right
Applies topositionedElements
InheritedNo
PercentageslogicalHeightOrWidthOfContainingBlock
Computed valuetop, bottom, left, right
Animation typelpc
Mediavisual
Specification groupCSS Logical Properties and Values
StatusStandard

Practical examples

These declarations demonstrate valid ways to set inset. The initial and inherit global keywords remain available even when a property-specific value is preferable.

inset live example
CSS .reset-example { inset: initial; } .inherit-example { inset: inherit; } @supports (inset: initial) { .supported { inset: initial; } }

Description

The CSS inset property is a standard property in CSS Logical Properties and Values. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: inset
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies