November 26, 2010
Adjusting styles based on a language

Traditionally, language HTML files would be stored separately and load language specific CSS files.But now we just store the language strings separately and programmatically print the language strings within the same HTML file.Very often I find myself adjusting the style attributes a little here and there for different languages just so that it fits nicely inside a container or a navigation bar and looks the same across all languages.Its actually easy to set style attributes based on the language attribute, lang in the HTML element.