
Originally Posted by
ddadmin
Actually, looking at the new link, I'm more confused than before. The menu on that page does work,....
Yes, but look at it with internet explorer 6, and you'll see it doesn't work there.

Originally Posted by
ddadmin
Why do you feel you need to duplicate the same id attribute ('red1") for more than one element?
was just for testing, when going live, for every red menu, the number would be increased (so red1, red2, red3 to red9).

Originally Posted by
ddadmin
If this is so you can style the two themes differently, you should simply use an additional CSS class name for the 2nd theme to accomplish what you want. For example, assuming the below chunk is the HTML for the 2nd themed menu items:
[...]
I can compound multiple CSS class names, so these menu items not only use the default CSS class name shared across the entire menu, but further customized based on the CSS class name "bigbold".
How would I then call this in the cascading stylesheet?
Code:
<div class="mainDiv" >
<div class="topItem red" >overheid</div>
<div class="dropMenu" ><!-- -->
<div class="subMenu" style="display:none;">
<div class="subItem"><a href="#">planadvies</a></div>
<div class="subItem"><a href="#">implementatie</a></div>
<div class="subItem"><a href="#">onderzoek</a></div>
</div>
</div>
</div>
Code:
.topItem red{
background-color:#CC3333;
}
does not seem to have any effect in ie6 and ff, topItemRed also does not work
this is because the classname is changed in the javascript
when I inspect the html in firefox with the FireBug extension, I can see that the classnames are topItemClose and topItemCloseOver, although I had changed it from topItem to topItemRed, so this is not the solution, that is why I started using the id="red2", which does work in firefox, but not in internet explorer 6 (haven't tested in ie7 as of yet)
I hope my method makes sense to you now
Bookmarks