Tom Edwards wrote:
[snip construct of floated sidebar and clearing elements within
>>> My content and image are both contained within the
>>> same div element. Is it possible to specify a clearing
>>> element to ONLY clear floats with a specified parent?
>> No, but if you would float this parent too, the
>> floats inside of
>> it wouldn't clear the floats outside of it.
> Unfortunately, that makes everything clear the
> sidebar. It was the first thing I tried, should have
> mentioned it.
Maybe I didn't explain it well enough :-)
I use it every day, and it works.
<img src="image.jpg" alt="alt-text">
Don't just float #sidebar and img, but also #content.
If #content (parent of #content1 and #content2) is floated, the
clear property on #content2 will not clear #sidebar.
Try it. If you have an example of it not working, I'll be happy
to have a look at it.
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/