473,503 Members | 9,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

float bugs in MSIE?

Hi

Please see http://217.209.105.84/float.html for two problems
with floated divs in MSIE.

Problem 1: the text next to the floated div gets indented even though
there is enough left margin in the text so that the text should not be
effected by the div.

Problem 2: The left margin of the floated div appears twice as wide
in MSIE as it should.

Especially the second one is annoying. Am I doing something
wrong or is this just a bug? If it's a bug, is there any workaround
or something?

regards
/Christoffer
Jul 20 '05 #1
3 1793
In article <bt**********@eol.dd.chalmers.se>,
Christoffer Berg <d0*****@dtek.chalmers.se> wrote:
Problem 1: the text next to the floated div gets indented even though
there is enough left margin in the text so that the text should not be
effected by the div.


http://www.positioniseverything.net/...reepxtest.html

My bane of last year.

nhoJ

--
John P Baker
Jul 20 '05 #2
Il Fri, 09 Jan 2004 13:31:14 +0100, Christoffer Berg ha scritto:
Problem 2: The left margin of the floated div appears twice as wide
in MSIE as it should.

Problem2 I use this workaround:

div1 {
left-margin:200px;
}

div2 {

float:left;
left-margin:200px;
//left-margin:100px;
}

Bye
Andrea
Jul 20 '05 #3
In article <bt**********@eol.dd.chalmers.se>,
Christoffer Berg <d0*****@dtek.chalmers.se> wrote:
Problem 2: The left margin of the floated div appears twice as wide
in MSIE as it should.


In fact, I think we encountered this one last year as well - I was in
hospital with a broken leg at the time. Try adding a 'font-size: 100%'.

nhoJ

Sorry I am not in a position to try it myself.
--
John P Baker
Jul 20 '05 #4

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

Similar topics

11
15031
by: Jeff Thies | last post by:
I have a series of blocks that are float left that I need centered on the page. <div class="center" align="center"> <div style="width: 100 px;float: left">thumbnail 1</div> <div style="width:...
12
10902
by: Stan Brown | last post by:
I've been thinking about float-ing a span versus float-ing a div, and the same for absolute positioning. When what is floated or positioned is a short chunk of text, I don't see any _visual_...
4
1720
by: Alex Bell | last post by:
There have been several postings recently dealing with bugs in Internet Explorer. Can anyone point me to a review of these bugs and how to work around them? Regards, Alex
1
2133
by: John Moyer | last post by:
Thanks in advance for any help you may be able to give. I am still having difficulty with thumbnails and captions that float and columns that flow as browser window size changes. It seems to work...
30
2957
by: Matt Probert | last post by:
Is it just me (probably) or is Mozilla and the newer Firefox full of CSS rendering bugs? I ask, because some strange effects occur with Mozilla and Firefox which don't happen in Opera and dare I...
5
1880
by: Marek Mänd | last post by:
Is in theory creating layout of two floats possible, where the left "float:left" has fixed with the right "float:left" extends to the right side of the browser window?
3
1578
by: Gary Smith | last post by:
Aloha, I'm having a problem with floated divs in msie 6. I've created a demo page that illustrates the problem. (http://kvb.tsu.biz/test.html). On that page is a div wrapper with a green...
2
6948
by: Marek Mänd | last post by:
I have simple structure like: <div> <h3 style="text-align:center;"> <span style="float:right;">input type="image"/></span> <span style="float:left;">input type="image"/></span> boxes titlebar...
5
2319
by: Kubik | last post by:
Hi! Let's see, we got: float var=4.6f; //as we know 414/4.6 shoud be equal to 90 but Math.Ceiling(414/var) gives us 91 but (414/var).ToString() prints '90'.
0
7207
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
7095
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...
0
7294
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
7361
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...
1
7015
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...
0
7470
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...
0
1523
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 ...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.