How Adjust width of Navigation Bar
-
https://antonlegal.com/
When I add menu items like “Contact” it makes a second row. How do I adjust the width of the menu bar in the CSS. So all buttons are on one row. I assume its in this part of code but not sure./* level 1 menu */
ul#dropdown-menu{ list-style:none; margin-bottom:0; }
ul#dropdown-menu li{ float: left; }ul#dropdown-menu li a{ display: block; padding:20px 0 20px 0; margin-right:30px; border-top:1px solid #efefef; margin-top:-1px;
color:#666; font-family: ‘Open Sans’, sans-serif; text-transform:uppercase; }
ul#dropdown-menu li.last > a{ padding-right:0; }ul#dropdown-menu li.hover, ul.dropdown-menu li:hover{ position: relative; text-decoration:none; }
ul#dropdown-menu li.hover a{ text-decoration:none; color:#333; } /* LEVEL 1 menu item styling ON HOVER */
ul#dropdown-menu li.current > a{ color:#333; border-top-color:#0055a5; } /* styling of LEVEL 1 menu item that is current *//* level 2 menu */
ul#dropdown-menu ul{ width:170px; position:absolute; top:100%; left:-10px; list-style:none; display:none;
background-color:#ffffff; border:1px solid #efefef; z-index:15; padding:5px 0; }ul#dropdown-menu ul li{ width:140px; padding:0 15px; }
ul#dropdown-menu li .sub-menu li > a{ width:140px; display: inline-block; border:none; border-bottom:1px solid #f0f0f0; padding:10px 0; /* LEVEL 2 menu element styling
- The topic ‘How Adjust width of Navigation Bar’ is closed to new replies.