By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,765 Members | 1,290 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,765 IT Pros & Developers. It's quick & easy.

floating divs and <br clear=all> problem in ie5 Mac

P: n/a
I am using the following pure css layout with a header and footer:

The left column floats to the left of the main content (middle

In the middle column I have 3 divs on top of each other, each of which
needs to have a border. To get the borders to display correctly in
Netscape 6 and ie5 (windows) I have to put a <br style="clear:both">
before closing each div.

Unfortunately, on ie5 Mac and Safari this causes the 2nd and 2rd div
of the middle column to display below the left coloumn of my layout. I
need the clear:both to get the borders to display correctly on ie5 Mac
too. Are there any other hacks that will force the borders or
backgrounds of a div to expand properly around the contents of the

The middle column divs are coded as below:

<div style="border:1px solid #000;">
First div contains 3 further float:left divs
<br style="clear:both"></div>

<div style="border:1px solid #000;">
3 further float:left divs
<br style="clear:both">

<div style="border:1px solid #000;">
contains text
<br style="clear:both">

Jul 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.