Tom Edwards wrote:

[snip construct of floated sidebar and clearing elements within 
content]

>>> 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.
In short:

<div id="sidebar">
</div>
<div id="content">
  <div id="content1">
    <img src="image.jpg" alt="alt-text">
    <p>text</p>
  </div>
  <div id="content2">
    <p>text</p>
  </div>
</div>

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.

-- 
Els
http://locusmeus.com/
http://locusoptimus.com/



______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
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/

Reply via email to