You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you put a navbar on top of your page it says in the docs to add padding-top: 60px; to the body, this is fine, but it turns out that the order in which you do it is important. If you don't do it in between bootstrap and bootstrap responsive, the navbar will pop down from the top of the window when it is scaled down below a certain size.
This will work:
<link rel="stylesheet" type="text/css" href="/lib/bootstrap.min.css">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<link rel="stylesheet" type="text/css" href="/lib/bootstrap_responsive.css">
This will cause the bug:
<link rel="stylesheet" type="text/css" href="/lib/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/lib/bootstrap-responsive.css">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
I don't know if this demands a fix per se but I think I should be more explicit in the docs.
The text was updated successfully, but these errors were encountered:
If you put a navbar on top of your page it says in the docs to add
padding-top: 60px;
to the body, this is fine, but it turns out that the order in which you do it is important. If you don't do it in between bootstrap and bootstrap responsive, the navbar will pop down from the top of the window when it is scaled down below a certain size.This will work:
This will cause the bug:
I don't know if this demands a fix per se but I think I should be more explicit in the docs.
The text was updated successfully, but these errors were encountered: