IE6 Duplicate Content Bug

When you have text mysteriously repeating after a series of floated elements in Internet Exploder 6, the general consensus is that it is due to comments being sandwiched between floats, as explained here:

http://www.positioniseverything.net/explorer/dup-characters.html

However, when I faced this problem today, I systematically removed all of my comments from my html, and the problem still persisted. I also tried adding a 3px negative right margin to the element as the above article recommended, as well as ‘display:inline;’ with no luck. So, still not knowing the issue, I took a stab at a solution, and it worked.

I applied the style ‘position: relative;’ to the element containing the repeated text. (Not the element that contains the unwanted text, but the original text.)

As with other positioning bugs, this one seems to be rectified with relative positioning. As for the actual cause of my repeated content as separate from the usual cause of float-sandwiched comments, I guess it will remain a mystery.

This entry was posted in Browsers. Bookmark the permalink.

4 Responses to IE6 Duplicate Content Bug

  1. mocambo says:

    Dear Author http://www.moonkatcreations.com !
    In my opinion you are not right. I am assured. I can defend the position.

  2. andy_crow says:

    I want to quote your post in my blog. It can?
    And you et an account on Twitter?

  3. Pingback: My

  4. Diego Fleury says:

    It’s work for me.
    display: inline fails and my html code don’t have html comments.
    Thank You!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>