IE7 DIV width problem



In IE6 I can force a DIV to automatically size to the width of its contents
by setting its width to 1px. This doesn't work in IE7, it tries to render
the DIV at the specified width, cutting off its contents. If I remove the
width entirely, the DIV goes to 100% of the screen width. Will I not be able
to have any shrink-to-fit DIV's in IE7?

Paul


.



Relevant Pages

  • Re: =?iso-8859-1?q?Ver=E4nderung?= von Stylesheets
    ... >> Bisher bin ich mit Dean's IE7 zufrieden. ... div Hintergrund grau ... Next by Date: ...
    (de.comp.lang.javascript)
  • Re: Two weirdnesses..are they related? (IE7)
    ... But they go apeshit in IE7. ... 'frame' at z-index one into which lots of clickable s are loaded. ... I.e. the onmouseover on theh parent <div> switches the visibility of the ...
    (comp.lang.javascript)
  • list-style: none is not working in IE7
    ... I have set up my ul to use a graphic button that I have created and I am getting mixed results with that in IE7, ... I have set up a div that is floated left, and within that are two more divs floated left to create a two column layout for the ul. ... comes first in the CSS so I would imagine that the list-style:none would take precedence, ... Any thoughts as to what I am missing here? ...
    (alt.html)
  • Re: IE7 not displaying bottom border of element
    ... floated paragraph inside a div. ... only, the bottom border isn't showing, at least not here. ... "pledge" part and in IE7 it disappears completely. ...
    (alt.html)
  • Re: IE7 DIV width problem
    ... "PJ6" wrote in message ... This doesn't work in IE7, it tries to render the DIV at the specified width, cutting off its contents. ...
    (microsoft.public.dotnet.framework.aspnet)