I am using Twitter Bootstrap on my website and have uploaded a high resolution version of my logo. The logo size is 529 x 100 pixels and this is what’s in my CSS:
.navbar-brand {
float: left;
padding: 12px 15px;
font-size: 19px;
line-height: 21px;
height: 62px;
max-width: 200px;
display: table;
}
2
Answers
I had the same issue. The problem that usually causes it is the padding. I tried to move the padding to the
.navbar
class and it works now. Try to remove the padding and see if that works. If yes, then try to find a better place (outer container maybe?) to place the padding or perhaps margin.I see that this is quite an old thread, but wanted to answer anyway. I was facing the same issue using Bootstrap 5.1.
I just needed to adjust the ratio of my logo and modify from the default Bootstrap setup. I modified it to width="117" height="21"