Logical properties Flashcards
What are physical properties in CSS?
Properties that define dimensions relative to the viewport, such as top, right, bottom, and left.
What do logical properties refer to in CSS?
Properties that define layout based on the content flow and box edges.
What determines the block flow direction in a document?
The writing mode; typically, it is top-to-bottom.
What determines the inline flow direction?
The document’s writing mode, such as left-to-right or right-to-left.
What is the advantage of using flow-relative properties?
They adapt to different writing modes without requiring layout adjustments.
Why use logical properties instead of physical properties?
They make layouts more adaptable to different languages and writing modes.