473,545 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

http://www.fu2k.org/alex/css/layouts...NN4_FMFM.mhtml

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

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:bo th">
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
div?

The middle column divs are coded as below:

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

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

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

Thanks,
Olly
Jul 20 '05 #1
0 2223

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
7846
by: fis | last post by:
Hi all, I've problem because there are needed break lines in my texts on the web site but i can't do it :( My pipeline looks like: XMS -> I18N -> XSLT -> HTML I have lot of texts in my "languages" files and these are describes for things on my website. Example text looks like this:
6
12141
by: Lasse | last post by:
I have done this simple function, it seems to work as intended, to solve a problem i have had for a while. I couldnt find any sample around that was working for me. I would like to test it with you and see if there are any improvments that i should make ;-) It should be fast and if possible compatible with todays modern browser-standards. It...
4
24254
by: lkrubner | last post by:
PHP has a function called nl2br() which takes all the newlines in a string and turns them into break tags <br>. I need to do the same in javascript. Is this about right? I'm not sure how one is supposed to reference invisible characters in Javascript strings. I took an example on the web and tried to modify it to my uses. function...
7
19101
by: noor.rahman | last post by:
I have an XML file that stores data from an HTML form. I use XSL to display the data in HTML format. The data may have newline characters. However, XSL is not displaying the newlines properly in the browser. I even replaced all the newlines with <BR/> tags but eventhough I see the tags in my source, I don't get a line break in the output...
2
2523
by: Winshent | last post by:
I have a multi line text in an admin page on my cms. I am trying to capture carriage returns as and replace them with <p></p> bfore the string gets written to the database. I have tried all the charcontrols option and chr(13) with success.. was using the following code: Dim s As String = MyTextbox.Text
3
4527
by: laredotornado | last post by:
Hi, Below I have an unordered list that is displayed on the same horizontal plane (thanks for the help yesterday). What I am wondering now is I would like the contents of the DIV with class "tabs- container" to be always displayed on the next line. Right now, it is being displayed on the same line as the unordered list. I could apply a...
3
6865
by: Amsville | last post by:
Hi, I have never written CF in my life, but I have to make a small change to a CF project (written by someone else of course). The CF app writes text away in the db, but the line breaks dont work in HTML, so I need to find an similar function of PHP's nl2br(). I tryed (as posted earlier on this forum) to replace the CF line break char with...
6
2375
by: Steve Richter | last post by:
I am using HtmlGenericControl to render html tags like <divand <span>. the problem is the <brtag does not render correctly when I use this method. ( it renders as <br></br>, which is seen by the browser as 2 consecutive <brtags. public class Html_br : HtmlGenericControl { public Html_br()
7
3601
by: Nathan Sokalski | last post by:
Something that I recently noticed in IE6 (I don't know whether it is true for other browsers or versions of IE) is that it renders <br/and <br></br> differently. With the <br/version, which is what most people use when they write static code (some people use <br>, but with xhtml you are required to close all tags), IE6 simply breaks to the...
0
7410
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7668
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7923
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7437
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5984
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3466
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.