473,395 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

IE Bug with CSS float and clear - is there a workaround

Hi!

I experienced some problems using IE 6 and some kind of css like this:

.... text above ...

<div style="border: 1ps solid blue; float: left;">This is my 1st float</div>
<div style="border: 1ps solid red; float: left;">This is my 2nd float</div>

<br clear="left">

hello world

.... text below ...

Screenshot Firefox (as it should look like):
http://www.urs-martini.de/screenshot_firefox.gif

Screenshot IE6 (with display-bug - see the missing text above the divs):
http://www.urs-martini.de/screenshot_ie6.gif

The effect in IE 6 is that much of the text before is displayed in white
instead of the correct color. It still appears if I select the content
with ctrl+a or the mouse.

Any other browser doesn't behave like this, so I expect a browser-bug.

Did anyone experience something similar and/or has a fix for that problem?

best regards

Urs Martini
Jul 20 '05 #1
5 7204
Els
Urs Martini wrote:
Hi!

I experienced some problems using IE 6 and some kind of css
like this:

... text above ...

<div style="border: 1ps solid blue; float: left;">This is
my 1st float</div>
<div style="border: 1ps solid red; float: left;">This is
my 2nd float</div>

<br clear="left">

hello world

... text below ...

Screenshot Firefox (as it should look like):
http://www.urs-martini.de/screenshot_firefox.gif

Screenshot IE6 (with display-bug - see the missing text
above the divs):
http://www.urs-martini.de/screenshot_ie6.gif

The effect in IE 6 is that much of the text before is
displayed in white instead of the correct color. It still
appears if I select the content with ctrl+a or the mouse.

Any other browser doesn't behave like this, so I expect a
browser-bug.

Did anyone experience something similar and/or has a fix
for that problem?


Difficult to tell without seeing the rest of the code.
Do you have a live example with a url?
--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 20 '05 #2
Difficult to tell without seeing the rest of the code.
Do you have a live example with a url?


I stripped away all of the unnecessary code, navigation
and so on.

What remains is the basic structure of cascading div's.

http://www.urs-martini.de/divtest/

The bug remains...

Any hint for me?

regards...

Urs
Jul 20 '05 #3
On Fri, 10 Sep 2004 16:19:27 +0200, Urs Martini wrote:
I stripped away all of the unnecessary code, navigation
and so on.

What remains is the basic structure of cascading div's.

http://www.urs-martini.de/divtest/

The bug remains...

Any hint for me?


The first thing to do is to make sure your test case is valid HTML and
valid CSS. There are errors in both:

http://validator.w3.org/check?verbos...ni.de/divtest/
http://jigsaw.w3.org/css-validator/v...ni.de/divtest/

Best, Darren

--
================================================== ====================
D. D. Brierton da****@dzr-web.com www.dzr-web.com
Trying is the first step towards failure (Homer Simpson)
================================================== ====================

Jul 20 '05 #4
Els
Urs Martini wrote:
Difficult to tell without seeing the rest of the code.
Do you have a live example with a url?


I stripped away all of the unnecessary code, navigation
and so on.

What remains is the basic structure of cascading div's.

http://www.urs-martini.de/divtest/

The bug remains...

Any hint for me?


The second link to a stylesheet...
I looked at that stylesheet. No way that's all needed for your
example. And no way I'm gonna check all of that for clashing
floats. Please provide an example without the baggage.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Mud - Tiger Feet
Jul 20 '05 #5
Urs Martini wrote:

<div style="border: 1ps solid blue; float: left;">This is my 1st float</div>
<div style="border: 1ps solid red; float: left;">This is my 2nd float</div>
<br clear="left">

IE6 (with display-bug - see the missing text above the divs):


<URL:http://www.positioniseverything.net/explorer/peekaboo.html>

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 20 '05 #6

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

Similar topics

10
by: Stefan Höhne | last post by:
Hi, as I recon, std::vector::clear()'s semantics changed from MS VC++ 6.0 to MS' DOT.NET - compiler. In the 6.0 version the capacity() of the vector did not change with the call to...
8
by: Harlan Messinger | last post by:
To produce a side-by-side three-column layout with a uniform, bordered top and bottom , I used the same HTML with two sets of styles. The two versions are at ...
6
by: Herman Kuiper | last post by:
Hi, The HTML at the end of this message will render erroneously on IE (at least 5.0) and prperly on Mozilla (as I've been told). That does not surprise me, but I *would* like to find some...
4
by: Florian Brucker | last post by:
Hi! I've got a problem with float & clear. Take this example code: <div style=" width:100px; height:100px; background-color:#FF0000; float:left; margin:10px;"></div> <span...
5
by: Chris Beall | last post by:
See http://pages.prodigy.net/chris_beall/BeallSprings/WC.Deed%20GG.116-17.html using the CSS at http://pages.prodigy.net/chris_beall/BeallSprings/BSstyle.css The page is a transcript of a...
10
by: Jesper Rønn-Jensen | last post by:
Hope you can help me out on this one. I have a a box that is floated right. Below (in the normal float) I have a wide table. <body> <div style="float:right; width:200px">...</div> <p>This...
2
by: Dr. Richard E. Hawkins | last post by:
I've googled around, and asked everyone I know, but I still can't find any reference to anyone else having faced this particular IE bug with floats. I've put a page at...
4
by: Jay Levitt | last post by:
I'm working on a site with a three-column-float, liquid-center layout that I believe came from ALA. So, from the top down, the columns are floats. In the center column, I'm working on getting...
3
by: Arnie | last post by:
Folks, We ran into a pretty significant performance penalty when casting floats. We've identified a code workaround that we wanted to pass along but also was wondering if others had experience...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...
0
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...

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.