
Signature
Mark.
http://tranchant.plus.com/
>> I've got a really annoying issue, and I can't see a way around it.
>> What I want to achieve is a block floated left containing a header and
[quoted text clipped - 13 lines]
> Don't specify the width in CSS but prop it up with a spacer image?
> Hideous, I know, but it might just work...?
Cheers for the reply, Mark, gave me an idea. Rather than use an image,
I've adapted Dave Shea's min-height solution from
http://www.mezzoblue.com/archives/2004/09/16/minheight_fi/ by adding a
container div around the elements inside, specifying padding-left: 200px
on the parent and margin-left: -200px on the child - this drags
everything together and both Firefox and IE6 seem to be acting fine -
see second test at http://philevans.com/ie_pants_fixed.html
My only problem here (apart from the potential for creeping
div-soup-itis) is that I'm now floating an element without explicitly
specifying a width for it, something which I know is a Bad Thing (TM).
Are there likely to be problems with this approach?
Cheers again
P
Mark Tranchant - 29 Sep 2004 15:25 GMT
> My only problem here (apart from the potential for creeping
> div-soup-itis) is that I'm now floating an element without explicitly
> specifying a width for it, something which I know is a Bad Thing (TM).
> Are there likely to be problems with this approach?
The Peekaboo Bug springs to mind. IIRC, using position: relative; might
fix that if you experience it.

Signature
Mark.
http://tranchant.plus.com/
Spartanicus - 29 Sep 2004 15:42 GMT
>My only problem here (apart from the potential for creeping
>div-soup-itis) is that I'm now floating an element without explicitly
>specifying a width for it, something which I know is a Bad Thing (TM).
>Are there likely to be problems with this approach?
Renderers that use the CSS 2.0 float rules need a width, renderers that
use the CSS 2.1 float rules and IE don't, they use a shrink to fit
mechanism.
Opera 6 uses the 2.0 rules.

Signature
Spartanicus
Phil Evans - 30 Sep 2004 12:24 GMT
>>My only problem here (apart from the potential for creeping
>>div-soup-itis) is that I'm now floating an element without explicitly
[quoted text clipped - 6 lines]
>
> Opera 6 uses the 2.0 rules.
Ahh, that's well worth knowing - wasn't clear how that had changed in
2.1. It might be that I feed something a little less clever to Op6 -
will have to grab a copy for testing . . .
Cheers to both Mark and Spartanicus for your help :)
P