HTML & CSS · Middle · Question 12 of 75
Why use logical properties like margin-inline-start instead of margin-left?
- ✓Correct answer: They adapt automatically to the writing direction (RTL, vertical text)
- 2They render faster than physical properties thanks to GPU acceleration
- 3It's legacy syntax kept for compatibility with old Internet Explorer
Explanation
Logical properties follow the text direction: inline is the line axis, block is the block axis, start/end are the beginning and end. In Arabic (RTL), margin-inline-start ends up on the right without extra styles. Shorthands exist too: padding-inline, inset-block, inline-size. They don't affect performance.