html - Foundation menu overflowing off of mobile -
i working on redesign of website, , used foundation framework make responsive. working great, menu when made mobile sized, overflowing off side of page. attached html & css, appreciated!
html
<div class="title-bar" data-responsive-toggle="example-menu" data-hide-for="medium"> <button class="menu-icon" type="button" data-toggle></button> <div class="title-bar-title">menu</div> </div> <div class="top-bar" id="example-menu"> <div class="top-bar-left"> <ul class="dropdown menu" data-dropdown-menu> <!-- put logo here pls --> <li class="menu-text site-title"> <a href="index.html"> <img src="img/logosean.png" alt="teddy bear head"> teddy bear wheelchair foundation</a> </li> </ul> <!-- not down here silly, there --> </div> <div class="top-bar-right"> <ul class="menu"> <li class="navpush"><a href="help.html">who help</a></li> <li class="navpush"><a href="aboutus.html">about</a></li> <li class="navpush"><a href="contribute.html">contribute</a></li> <li class="navpush"><a href="partners.html">partners</a></li> <li class="navpush"><a href="contact.html">contact</a></li> </ul> </div> </div>
css
.top-bar, .top-bar ul { background-color: #4c1a1b; font-family: "lato", "helvetica", sans-serif; font-weight: 400; color: #fcfae1; } .top-bar ul { color: #fcfae1; list-style: none; } .navpush { padding-top: 10px; } .top-bar ul a:hover { color: #f6e497; } .site-title { color: #fff; font-weight: 900; padding: inherit; }
thanks
you using class menu
in ul
has predefined properties
.menu > li { display: table-cell; }
therefore, in css, write:
.menu > li{ display:inline-block; }
or else change menu class.
hope helps!
Comments
Post a Comment