CSS Logical Properties and Values
CSS Logical Properties and Values is a module of CSS introducing logical properties and values that provide the ability to control layout through logical, rather than physical, direction and dimension mappings.
The module also defines logical properties and values for properties previously defined in CSS 2.1. Logical properties define direction‐relative equivalents of their corresponding physical properties.
Block vs. inline
Logical properties and values use the abstract terms block and inline to describe the direction in which they flow. The physical meaning of these terms depends on the writing mode.
- Block dimension
-
The dimension perpendicular to the flow of text within a line, i.e., the vertical dimension in horizontal writing modes, and the horizontal dimension in vertical writing modes. For standard English text, it is the vertical dimension.
- Inline dimension
-
The dimension parallel to the flow of text within a line, i.e., the horizontal dimension in horizontal writing modes, and the vertical dimension in vertical writing modes. For standard English text, it is the horizontal dimension.
Reference
Properties for sizing
Properties for margins, borders and padding
border-block
border-block-color
border-block-end
border-block-end-color
border-block-end-style
border-block-end-width
border-block-start
border-block-start-color
border-block-start-style
border-block-start-width
border-block-style
border-block-width
border-color
border-inline
border-inline-color
border-inline-end
border-inline-end-color
border-inline-end-style
border-inline-end-width
border-inline-start
border-inline-start-color
border-inline-start-style
border-inline-start-width
border-inline-style
border-inline-width
border-start-start-radius
border-start-end-radius
border-end-start-radius
border-end-end-radius
border-style
border-width
margin
(logical
keyword)margin-block
margin-block-end
margin-block-start
margin-inline
margin-inline-end
margin-inline-start
padding
(logical
keyword)padding-block
padding-block-end
padding-block-start
padding-inline
padding-inline-end
padding-inline-start
Properties for floating and positioning
clear
(inline-end
andinline-start
keywords)float
(inline-end
andinline-start
keywords)inset
inset-block
inset-block-end
inset-block-start
inset-inline
inset-inline-end
inset-inline-start
Other properties
caption-side
(inline-end
andinline-start
keywords)overflow-block
overflow-inline
overscroll-behavior-block
overscroll-behavior-inline
resize
(block
andinline
keywords)text-align
(end
andstart
keywords)
Deprecated properties
Guides
Specifications
Specification |
---|
CSS Logical Properties and Values Level 1 |
Browser compatibility
See the individual property pages for full compatibility information.