I have this Bootstrap 3 navbar: http://www.bootply.com/xkcDjvQslb
I want the following modifications:
I saw the following example: http://www.bootply.com/69848; not great at bootstrap and when I pull the relevant code it breaks my menu.
The banner (above the navbar) would be a table with a logo on the left side and title on the right. I need someone to point me in the right direction?
To create a collapsible navigation bar, use a button with class="navbar-toggler", data-toggle="collapse" and data-target="#thetarget" . Then wrap the navbar content (links, etc) inside a div element with class="collapse navbar-collapse" , followed by an id that matches the data-target of the button: "thetarget".
The navbar-header is mostly an architectural class for Bootstrap navbar. It allocates approximately 150px to the left of the navbar to wrap the navbar-brand and allow the brand name or logo to make use of the entire area on click or hover.
A "navbar" is an area on a page that contains navigation components (links, buttons, etc) for getting to other pages of the website. A "nav" is an HTML element that is normally used to enclose other elements related to navigation.
Remove navbar-fixed class in nav. Then place markup above the nav.
http://www.bootply.com/vxJEiv1RC2
I found the solution here: http://jsfiddle.net/DTcHh/541/ , just needed to clean up my code:
topnavbar {
margin: 0;
}
#topnavbar.affix {
position: fixed;
top: 0;
width: 100%;
}
#banner {
background-color: yellow;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With