![]() |
Positioning inner UL to outer UL
Hey all,
I'm having a problem building a menu using ul elements. The menu looks something like this: Code:
<ul class="level0">position: fixed ?Any help is greatly appreciated! |
You have an error in your source code.
Your LI tag inside the UL are not closed. The solution to your problem: try: Code:
<li style = "position: absolute; top:0; left:0; width:200px; height: 20px;"></li>width and height are whatever you want them to be Of course, you can make the CSS external, but you get the idea ;) Important: In order for this to work, make sure the UL container has "relative" positioning: Code:
<ul style = "position:relative"> |
Yes, the code I posted is just an example, more of a pseudo-code, the real code is a bit more complex and quite long to put in here. Sorry 'bout that.
|
Anyway, this is the site that you can see how it looks at the moment:
http://colijn.staging.levi9.com/meubelplaza/ If you'd select filter a drop-down menu will appear, and then you can hover over different options in that menu. Each option has a sub-menu that opens to the right, but at a different top position. What i would like is that all of these sub-menus open at the same position. |
| All times are GMT +1. The time now is 09:50 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.