Quantcast

ie6/7 shrink-wrapping with floated children

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ie6/7 shrink-wrapping with floated children

Mike Wilson
Administrator
I'm a little rusty on my hack management, but do I remember
correctly that there is no workaround for the following
IE6 and IE7 bug:

  <doctype html>
  <div style="position: absolute;">
    <div style="float: right;">X</div>
  </div>

(the outer DIVs shrink-wrapping is incorrectly defeated by
the floated child so it instead spans the full page width)

Is the only workaround for the wrong size to set an explicit
width?

Best regards
Mike Wilson

______________________________________________________________________
css-discuss [[hidden email]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Loading...