A multilingual SaaS app must support Arabic (RTL) and English (LTR). A developer hard-codes margin-left: 24px for a sidebar. What is the correct fix for RTL support?
-
A
Detect the language in JavaScript and toggle a CSS class
-
B
Use CSS logical properties (margin-inline-start: 24px) which automatically flip in RTL contexts
-
C
Add a separate Arabic stylesheet
-
D
Use position: absolute to place the sidebar