javascript - Element`s absolute positioning issue -
is there way include children elements size position absolute there parents size, means :
we have :
markup
<div class="parent"> <div class="children"> position absolute. </div> </div> css
.parent // position default static { width:100%; height:auto; } .children { position :absolute; width:100%; height:auto; } my problem height of parent 0, may because of children absolute positioning. there workaround this?
can use javascript? inman's position clearing method job you:
http://shauninman.com/assets/examples/si-clear-children-1.0/si-clear-children-1.0.zip
more info here: http://shauninman.com/archive/2006/05/22/clearance_position_inline_absolute
Comments
Post a Comment