html - Two divs going inside eachother -


i have 2 divs, , want set them body div starts below navbar, keep intersecting. how make bodycontainer div below navbar?

html:

<html> <head>     <link rel="stylesheet" type="text/css" href="css.css">     <meta charset="utf-8"> </head>     <div id="topbarcontainer">         <div id="topbar">             <span id="topbartitle">private & air's shop</span>         </div>     </div>     <div id="bodycontainer">         <div id="bodycontent">             <div id="mainbodycontent">             test             </div>         </div>     </div> </html> 

css: http://pastebin.com/u5z4ib4q css long, put pastebin.

you used 'position:fixed' on #topbarcontainer in css. means when other elements on page take positions, ignore #topbarcontainer if not there in first place. remove 'position:fixed' css file. if chose use 'position:fixed' intentionally maintain position of#topbarcontainer when page scrolled should add following #bodycontainer#topbarcontainer force under #topbarcontainer div

position:fixed; top:75px;


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -