Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logo doesn't fit in bootstrap navbar

I am trying to change the image in my naviation to a larger size.

However by doing this the navbar get's malformed.

enter image description here

I have the code over here: http://www.bootply.com/941lMP3fj6#

The problem might be that the image is in an anchor tag. But not sure.

like image 669
sanders Avatar asked Sep 05 '14 12:09

sanders


People also ask

How do I change the navbar logo size?

Open your image in Preview - Go to Tools/AdjustSize: Then you can change your width or height to the desired size. Make sure to keep Scale Proportionally checked!

How do I make the navbar fit an image?

If you're simply trying to adjust the size of an image to correspond to the height of a default navbar ( min-height: 50px ), simply use the below CSS as a base depending on how you want the image to fit. In this example, the image will cover it's part of the navbar completely. See working Snippet.


Video Answer


1 Answers

Try:

.navbar-brand 
{
    padding-top: 0;
}

Working: http://www.bootply.com/cCg5FvZyZP

like image 105
George Garchagudashvili Avatar answered Sep 30 '22 18:09

George Garchagudashvili