css - IE7 scrollbars when position:relative item WAS out-of-screen -
ie7 seems show scrollbars when item has position: relative on used cause scroll-bar (e.g. if took position: relative
off).
<div class="box"> <div class="inner box"></div> </div> .box { position : absolute; top : 5px; left : 100px; right : 5px; height : 100px; border : 1px solid #000; } .inner { right : auto; position : relative; width : 110%; left : -90px; }
demo: http://jsfiddle.net/ve9ne/1/
wondering if has seen , knows how fix it?
use negative margins instead of negative left
... left:0; margin-left:-90px;
Comments
Post a Comment