html - UI/UX with two div each contain menu -
i want achieve ui/ux this
so there logo, 2 menu, 1 language change, 1 change menu
my approach 2 div
first div contain image , language menu ul
second div contain menu ul
but, image in first div covered second div
did approach wrong?
here i've done
html & css
header { position: fixed; } #logo { position: fixed; float: left; } #nav-language { align: right; width: 100%; height: 66px; } #nav-menu { background-color: #ccb96b; width: 100%; height: 66px; top: 67px; position: fixed; } #nav-menu ul { left: 500px; z-index: 5; } ul { list-style-type: none; } li { display: inline; padding: 15px; } #nav-language { font-size: 1.6em; text-transform: uppercase; font-weight: bold; font-family: century gothic; text-decoration: none; color: white; } #nav-menu { font-size: 1.6em; text-transform: uppercase; font-weight: bold; font-family: century gothic; text-decoration: none; color: #430615; } #nav-menu a:hover { opacity: 0.36; } <header> <div id='nav-language'> <img id="logo" src="<?php echo base_url(); ?>assets/images/logo.png" /> <ul> <li class='navigation-blog'><a href='#'>en</a></li> <li class='navigation-crew'><a href='#'>fr</a></li> <li class='navigation-promos'><a href='#'>it</a></li> </ul> </div> <div id='nav-menu'> <ul> <li class='navigation-blog'><a href='#'>home</a></li> <li class='navigation-crew'><a href='#'>about us</a></li> <li class='navigation-promos'><a href='#'>contact us</a></li> </ul> </div> </header> any appreciated, maybe approach wrong, welcome advice
i able achieve you're looking changing #nav-language position: relative; , changing css on #logo div's z-index , top & bottom attributes. here's jsfiddle
edit: note you'll have play top , bottom values depending on image size, i've used random image example
edit2: noticed have align: right; on #nav-language div, align doesn't exist in css, you'll want set header width 100% , put float: right; on language ul. i've updated jsfiddle correct css

Comments
Post a Comment