I would like to add a logo to the top navigation bar in the navbar brand. I would like it to scale with the size of the viewport, so I use the img-responsive2 class.
It seems that both the image and the text in the navbar brand are wrapped to the next line.
This page can be viewed at http://digitalponddesign.com/dev/
Thanks in advance for your help.
Here is my code:
HTML
<h2 class="navbar-brand brand-name"> <a href="index.html"><img class="img-responsive2" src="images/DigitalPondlogo.png">DigitalPond</a> </h2>
CSS
.navbar { margin: 10px 0; } .navbar-default { background-color: #fff; border-color: #fff; } .brand-name { font-family: 'Josefin Slab', serif; font-size: 47px; font-weight: bold; color: #444; text-decoration: none; } .nav-container { padding-top: 8px; } .navbar-custom { font-size: 20px; background-color: #FFF; }
twitter bootstrap
Design2u
source share