Hi!
I have a div:
<div class="navigation mainPage"></div>
I need to specify that: every DIV that has a class "navigation" AND class "mainPage" should have "width: 999px".
Is this possible? thx
Hi!
I have a div:
<div class="navigation mainPage"></div>
I need to specify that: every DIV that has a class "navigation" AND class "mainPage" should have "width: 999px".
Is this possible? thx
Since you want every DIV, make it more specific:
div.navigation, div.mainPage{ width:999px; overflow:hidden;}
You can try
.navigation.mainPage { width: 999px; }
but this doesn't work in IE6. You can try to go around by doing
<div class="navigation navigation-mainPage"></div>
and then CSS
.navigation-mainPage { width: 999px; }
Even though this isn't the nicest solution, but I don't know of any other way around it.