I've gotten Bootstrap running on my site successfully but I'm trying to use the navbar-top-fixed functionality and whenever the page loads it pushes everything down about 20 pixels and I can't seem to diagnose why.
My code for the nav-bar is this:
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container protected">
<ul class="nav pull-right nav-pills">
<li><a href="/account/login" id="customer_login_link">Login</a></li>
<li><a href="/cart"><i class="icon-shopping-cart icon-white"></i> View cart <span class="badge badge-warning">2</span></a></li>
</ul>
</div>
</div>
</div>
And the page at this link will load the page properly, and then when it loads the page it pushes it down like this screenshot .
Has anyone seen this before or know any quick fixes? I am customizing one of the nav-bars on the page using lessCSS.
Please move the navbar markup in front of the "container" div. The "container" class has this margin defined.
See here: http://postimage.org/image/nu5pv8tkz/
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.