Skip to content

internationalization

Nicolas Gallagher edited this page Jan 26, 2012 · 2 revisions

Internationalization

Right to left layout?

In general, HTML5 Boilerplate is pretty agnostic when it comes to LTR and RTL but there are three places you want to consider

  1. ul, ol { margin-left: 1.8em; } this is the only case that is problematic, should either have a commented line below noting that for right-to-left designs this should be margin-right. or, make ol,ul a special case and not reset their margin.

  2. pre { padding: 15px; ... } should also have direction:ltr. Code is 99.9% of the time LTR, no reason to make this a special RTL css line.

  3. .ie6 legend, .ie7 legend { margin-left: -7px; }, again, margin-right is needed for RTL pages. Can we just add margin-right:-7px? will it break anything if both margins where negative for the general case? legend is an un-stylable tag anyway.

  4. Use -webkit-margin-start, -moz-margin-start. It won't solve the problem in every browser, but it's the right solution going forward.

More reading:

Clone this wiki locally