The site that I am working on is bilingual, specifically in english and in spanish. This presents complications for any site of course, so this is a good trick to have in your arsenal. This is especially good for Drupal but will work on any site.
media=”screen”
:lang(es) #menu-4184-1
{
position:relative;
width: 122px;
}
This will allow the particular selector to be used only when the language is set to spanish. Please note that many other languages can be used by this by replacing the two letter language code with the one that you need. EI – de for german.
Very useful tip for multilingual sites, specially for ‘translating’ images or icons with some text inside.
LikeLike