简体   繁体   中英

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.

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

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

在此处输入图片说明

It is added from some JavaScript Or Jquery.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM