I'm new to Bootstrap, and it's hard for me to put a title above the navigation bar. I need to have a title for the current website with a height of at least 70 pixels, at the same time I need to make sure that the โResponsivenessโ function works when viewed through a mobile phone. My current code
<div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="brand" href="#index.html"><img src="img/navigationlogo.png" alt="Home"/></a> <div class="nav-collapse collapse"> <ul class="nav"> <li class="active"> <a href="#index.html"><img src="img/Home_Button.png" width="24" height="21" alt="Home"/></a> </li> </ul> </div> </div> </div> </div>
What I think is to add
<header></header>
Above the navigation bar and place your logo there.
Can someone please provide me an example css code on how I can achieve this? Since I heard that minimum padding should be supported so that adaptive navigation works if seen through a mobile device.
html5 css3 html5boilerplate twitter-bootstrap
Justin russo
source share