1 – 2 of 2
Blogger Unknown said...

What if you need the float: left? I have a divless form field that the same thing is happening. Driving me nuts because If I delete the float, it messes up everything.

12 September, 2008 14:04

Blogger Yakko Warner said...

Then, unfortunately, I think you're screwed.

It's clearly a bug in IE6, but since Microsoft has released IE7 and is now working on IE8, my guess is they won't fix the old browser.

There's just something about the combination of the table cell, the spans, and the float that gives IE6 a headache.

The maddening thing about it is, as I'm sure you want to scream by now, there's nothing wrong with the HTML. So it's not really a question of "fixing" your code. You just have to tweak it to break the mysterious alignment of elements that causes IE6 to freak.

In my case, the input elements were in individual table cells, so the "float:left" wasn't providing any benefit -- enclosed in their own cell, there wasn't anything else to "float" around.

I'm guessing by your description that you must float your element left because there are other things in the table cell. It's been a while, so I can't remember what other things I tried and what might've succeeded or failed. Are you able to change your spans' display to hidden instead of none? Are you able to wrap the contents of the table cell (or just your input element) in a div or span, and float that left instead?

It's frustrating as all get-out, because without knowing the cause (it's not buggy HTML, just some rendering bug internal to IE6), it's hard to suggest a sure-fire solution. Believe me, I know; I've been there. Unfortunately, there's not much I can suggest except to keep trying things until it works. :-/

12 September, 2008 14:33

Your civil comments are appreciated. Thanks!
You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot