javascript - jQuery mmenu: Position of menu next to the layout -
as far tested jquery.mmenu can descide wheter want have menu left or right in browser window.
the design of website not take 100% of screen, position menu @ top left of design , not top left of browser window.
the javascript of jquery.mmenu moves html of menu directly after opening body tag, not in html structure of design anymore. pure css positioning not guess :-(
<!-- page --> <div class="page"> <!-- menu --> <nav id="menu"> <ul> <li><a href="/">home</a></li> <li><a href="/about">about us</a></li> <li><a href="#">...</a></li> </ul> </nav> <div class="header"> <a href="#menu">open mmenu</a><br> demo </div> <div class="content"> <p><strong>this demo.</strong><br /> click menu icon open menu.</p> </div> </div>
as can see menu inside div ".page", javascript of mmenu moves outside. see http://jsfiddle.net/qncfkjbg/ open menu @ top left of yellow area , not @ top left of window.
is somehow possible?
position:fixed; top:10px; left:10px;
apply css can change top , left respectively
Comments
Post a Comment