HTML & CSS · Senior · Question 44 of 75
You're designing the CSS architecture of a multilingual site including Arabic (RTL) and Japanese. What should you plan for?
- 1A separate copy of all styles for each language and writing direction
- ✓Correct answer: Logical properties,
lang/dirattributes, flexible containers for text - 3Fixed widths on buttons and blocks so translations can't break the layout
Explanation
Logical properties (margin-inline-start, inset-inline-end) mirror the layout automatically for RTL with dir="rtl". lang is needed for correct fonts, hyphenation and quotes, and :lang() for language-specific styles. Text length varies across languages, so fixed widths break. CJK needs its own fonts and line-breaking rules (word-break, line-break).