I can't seem to figure out how to center & change the width of my whole navigation bar for my website
-I'm using the slate bootswatch theme
I can't seem to figure out how to center & change the width of my whole navigation bar for my website
-I'm using the slate bootswatch theme
<div class="navbar navbar-default" style="
width: 600px;
position: absolute;
left: 35%;
">
...............
<div class="navbar-collapse collapse navbar-responsive-collapse" style="
width: 500px;
position: absolute;
left: 10%;
">
Change the number to fix as you want, not really a good way but maybe you want to see
You may have to add additional css to tweak the bootstrap css:
.navbar-nav{
display: inline-block;
float: none;
}
.navbar-collapse {
text-align: center;
}
and remove the class navbar-right
from the navigation ul
to change the width of each menu item, target the .nav > li > a
e.g., .nav > li > a { width: 150px;}