Hello!
I am building a site which will be translated into 15 languages. In the css, I am using generic styles for some parts, and then targeting specific areas using a programmatically set body class (body.de for German, body.ru for Russian for example).
What I did was I listed the language-specific styles first, and then the generic styles which applied to all languages last. The problem is, the language-specific styles overruled generic styles, which is shouldn't. For example, in the following snippit, the first line overrode styles meant for the sub-navigation which were not supposed to be overridden.
I would have thought that the second line would be the active code! And in fact, IE displays it as I would have thought. FF is the one that's giving me the problem.
Who's right? And how do I fix this without having to declare all 15 languages in all the generic styles?
I am building a site which will be translated into 15 languages. In the css, I am using generic styles for some parts, and then targeting specific areas using a programmatically set body class (body.de for German, body.ru for Russian for example).
What I did was I listed the language-specific styles first, and then the generic styles which applied to all languages last. The problem is, the language-specific styles overruled generic styles, which is shouldn't. For example, in the following snippit, the first line overrode styles meant for the sub-navigation which were not supposed to be overridden.
Code:
body.de #topnav ul li { margin: 0 13px 0 0; padding: 0 13px 0 0;}
#topnav ul li ul li { padding: 0; margin: 0;}
I would have thought that the second line would be the active code! And in fact, IE displays it as I would have thought. FF is the one that's giving me the problem.
Who's right? And how do I fix this without having to declare all 15 languages in all the generic styles?






