Previous Message
Next Message

Clearing internal floats

Sent by Tom Edwards on 20 February 2006 22:10


Whoops, missed this one. Messages aimed at me get keep
getting sent to the junk folder.

The only difference between your and my pages is that
the sidebar div comes before the content for me. Is
that causing the problem?

--- Els [EMAIL-REMOVED]> wrote:

> 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-REMOVED]]
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/
Previous Message
Next Message

Message thread: