Saquib Ahmed
Saquib Ahmed

Reputation: 155

Scrolling page add extra padding on top on logo

Scrolling down the page add extra padding above the logo. I need to figure out a way to align the logo properly with rest of the site. Here's what I have tried out so far: I have commented out this line in line in my js file.

//$('.navbar-brand').css({ 'padding-top' : 0 + "px", 'padding-bottom' : 0 + "px" });

Here's the link to my site Please note: This issue is replicated only on scrolling the page up or down.

Upvotes: 1

Views: 229

Answers (1)

ketan
ketan

Reputation: 19341

When you scrollback to top of the page. There are added padding-bottom: 27px; padding-top: 27px; in navbar-brand anchor tag.

Remove it when scroll to top back. It will solve your issue.

enter image description here

It is added from some JavaScript Or Jquery.

Upvotes: 1

Related Questions