Lesson 26 of 50
cssLogical Properties & Writing Modes
7 mins
Course progress52%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 26 of 50
css7 mins
Keep these ideas in mind as you work through the lesson.
Logical properties respect text direction (ltr / rtl).
margin-inline-start: 1rem; /* left in LTR, right in RTL */
padding-block-end: 2rem; /* bottom in both directions */
writing-mode controls the flow of text (horizontal‑tb, vertical‑rl, etc.)..container { writing-mode: horizontal-tb; }
.rtl { direction: rtl; }