html - DIV position absolute causes other elements after the div to be hidden -


i have div following style

#holder{     margin-top: 1px;     background-color: #dce1e5;     position:absolute;     left:0;     right:0;     display:block;     padding:8px; } 

my issues element enter after div tag hidden behind div example

<div id="holder">my stuff here of</div> <div id="somethingelse">this hidden behind top div</div> 

any ideas on how can fix this, , have ie7 compatible?

position: absolute; removes element flow defined box model. element smaller holder hidden it. solution not use position: absolute; case, since understand not wanting can achieved through this.

i recommend take time understand box model is: http://www.w3.org/tr/css2/box.html


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -