HTML & CSS · Middle · Question 12 of 75

Why use logical properties like margin-inline-start instead of margin-left?

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.

Further reading

Problem with a question

HTML & CSS · Middle · question 12

Test yourself

Take the HTML & CSS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz