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

float bugs in MSIE?

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.