开发者

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

开发者 https://www.devze.com 2023-04-07 12:51 出处:网络
I\'m curious why the following won\'t display properly: <div class=\"topbar\">...</div> <d开发者_JS百科iv class=\"container\">...</div>

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

<div class="topbar">...</div>
<d开发者_JS百科iv 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消