Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons
  • Teach on BraveProgrammer

© 2026 BraveProgrammer. All rights reserved.

Logical Properties & Writing Modes | CSS Course lesson | BraveProgrammer
  1. Courses
  2. /
  3. CSS Course

Lesson 26 of 50

·css

Logical Properties & Writing Modes

7 mins

Course progress52%

What you'll learn

Keep these ideas in mind as you work through the lesson.

2 points
  • Logical properties (`margin-inline`, `padding-block`) make internationalization easier.
  • `writing-mode` is used for Asian vertical scripts and certain UI components.

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.).

Example: Bi‑directional layout

.container { writing-mode: horizontal-tb; }
.rtl { direction: rtl; }
Make it stickPractice what you've learned1 quiz · 6 practical tests · Optional activities from CSS CourseBrowse activities
Previous lessonCSS Functions – calc(), clamp(), min(), max()Continue to lesson 27CSS Grid – FundamentalsBack to CSS Course curriculum