Skip to main content
InterviewHubPRO
Section Overview
Q22

Question 22 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

44%
CSS3 & Modern Layouts (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

What are CSS Logical Properties and why are they required for RTL?

senior LevelSystem Design

In Simple Words: Traditional physical properties (margin-left, padding-right, left, right) assume Left-to-Right (LTR) languages like English. In Arabic or Hebrew (Right-to-Left - RTL), layouts break. Logical Properties adapt automatically based on the document writing mode:

  • margin-left -> margin-inline-start
  • margin-right -> margin-inline-end
  • padding-top -> padding-block-start
  • padding-bottom -> padding-block-end
  • width -> inline-size
  • height -> block-size