I am trying to create a full width mega menu. That is, where the drop down (child element) is the full width of the parent menu. I am having a little difficulty finding a suitable example that is close to what I want.
The type of effect I am going for is some thing like this: http://nigelbuckner.com/menu_test/
The technique I have used here is not suitable because the drop div (child element) that appears has the <a> tag from the main menu wrapped around it. This is only suitable for a pop-up box. The code for this looks like:
<nav>
<ul id="mega">
<li><a href="#" id="train_web_1">Web Design
<div id="train_web_2">Web Design content here</div></a>
</li>
<li><a href="#" id="train_graphics_1">Graphics
<div id="train_graphics_2">Graphic Design content and other stuff here</div></a>
</li>
</ul>
</nav>
Here, in accordance with the CSS, it is the <a> that maintains the visibility of the child element <div>, but when I try to put another <ul> in the <div> it is no longer visible.
I have investigated various solutions that are out there but what I have found is that the child element position is linked to the parent element like this example: http://nettuts.s3.am...demo/index.html
This is because in the CSS the child element (which has absolute position) has a left position of something like '-990em'. This is for enhanced accessibility but effectively makes it difficult to align each child element to '0' on the left.
If you have got this far "well done".
Does anyone have any suggestions or solutions for this?
Cheers