html - how can i make this menu display, like as per in the image using media query? -
how can make menu display, per in image using media query
this done codepen link
<div class="container"> <div class="row"> <div class="col-md-12"> <div class="menu-tags"> <ul> <li><a href="#">all</a></li> <li><a href="#">starter</a></li> <li><a href="#">breakfast</a></li> <li><a href="#">lunch</a></li> <li><a href="#">dinner</a></li> <li><a href="#">deserts</a></li> </ul> </div> </div> </div> </div>
make li display:inline-block;
, add text-align:center
ul
.menu-tags ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; display: list-item; text-align: center; } .menu-tags li { display: inline-block; } .menu-tags a:link{ text-decoration: none; } .menu-tags ul li { display: inline-block; padding: 14px 16px; text-decoration: none; color: black; font-size: 18px; font-weight: 700; cursor: pointer; border-bottom: 3px solid transparent; font-family: "josefin sans",sans-serif; text-transform: uppercase; margin: 0px 20px; padding-bottom: 2px; padding-top: 5px; } .menu-tags ul li a:hover{ border-bottom: 3px solid #f1cd8f !important; text-decoration: none; } .menu-tags{ padding-left: 10%; }
Comments
Post a Comment