html - Tips on creating a mega menu using css and javascript -


so looking menu 5 content tabs , inside of each of tabs 7 items. each of these items need have potential of having submenu of own.

i looking best way structure able read , updated using css, javascript(no jquery), , html. must compatible ie 8 (a pita me).

thank tips or suggestions.

jsfiddle.net/nwxry/2/

http://i.imgur.com/9nlc88w.png <- image of looking do

the code didn't work because wrapped in onload (on left side of fiddle).

i made small css solution it, can build upon here. hope suits needs. under "change request" > "infrastructure service" can find another, css-based submenu under first item.

jsfiddle

i added following #t4:

<div class="mnuitem" id="chginfrastructuremnu">    <img src="arr1.pngx" style="margin:-35px 0px 0px -10px;position:absolute"/>    <div class="mnusubitem"><a href="#">item</a> <!-- part added -->        <div class="mnusub">             <a href="#">subitem</a>       </div>    </div><br/>        <a href="#">item</a><br/> </div> 

i added following css:

.mnusubitem .mnusub {     display: none;     position: absolute;     left: 50px;     top: 0; } .mnusubitem {     position:relative; } .mnusubitem:hover .mnusub {     display: block; } 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -