pruett
pruett

Reputation: 2121

HTML elements not properly stacking in Twitter's 'Bootstrap' framework

I'm curious why the following won't display properly:

<div class="topbar">...</div>
<div class="container">...</div>

I'm using Twitter's Bootstrap (http://twitter.github.com/bootstrap/) for the layout and the contents within topbar are on top of the contents within container. Why aren't these divs properly stacking on top of each other?

Upvotes: 2

Views: 859

Answers (1)

pruett
pruett

Reputation: 2121

After reading the documentation regarding the use of the <topbar> element, it reads:

Note: When using the topbar on any page, be sure to account for the overlap it causes by adding padding-top: 40px; to your body.

Upvotes: 2

Related Questions