This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > April 2004 > CSS Drop menus z-index problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CSS Drop menus z-index problem
Mo11

2004-04-21, 3:14 pm

Hey all,

I have made a css drop menu using the <UL> and <li> tags.
I want to have a two line menu. the problem is that the top drop down menu is
under the bottom menu.

I think that the z-index property only apply to objects that were positioned
by position:absolute.
so my uls and ils are. but still same problem.

the structure is as the following :

<ul>
<li><div>MENU 1 </div>
<ul>
<li>sub men 1</li>
<li>sub men 2</li>
<li>sub men 3</li>
<li>sub men 4</li>
</ul>
</li>
<li><div>MENU 2 </div>
<ul>
<li>sub men 1</li>
<li>sub men 2</li>
<li>sub men 3</li>
<li>sub men 4</li>
</ul>
</li>
</ul>
Some javascript is putting all that together (getElementByTag)
I have set the z-index for the menus to -100 and the z-index of the <il><ul>
(the sub mens group) to 100.

help of any kind will be appreciated.

Thanks for reading this fqr, hope you could help

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews