• About

    "WHYYI" is a place to discuss every day occurances that make you say "Why oh Why would someone do that?" Whether it is related to Technology, Business, Sports, Love, Humor or Politics, we seek to discuss these in a fun and entertaining way. You may upload your own questions or comments on Topics. Have Fun! Read more...

    Other Profiles

    Resources

    Admin

  • Weird IE Display Problem

    January 14th, 2009 by davidwright

    So we all agree IE has some bugs, and unfortunately every client out there seems to use it (count your lucky stars if they use IE7). By far one of the most annoying is how IE displays margin. The other on my list is the ie png transparency problem. However, there is a fix for this weird IE display problem.

    The fix is fairly simple: display:inline;

    That’s it use display:inline; on your in-line element (images, text) adjacent to a floated div and your good to go. The bug is related to IE’s weird results on floated div’s.

    Weird IE Display Problem with out display:inline;

    Without Display Inline

    Weird IE Display Problem with Display Inline

    With Display Inline

    example with display inline

    example without display inline

    Tags:

    One Response to “Weird IE Display Problem”

    1. Martijn Says:

      I’m attending aneventapart.com in seattle.
      It’s funny that the browser most used by people on a PC is
      laughed at (feared) and ridiculed amongst developers…

      IE, W3C compliant? it seems Microsoft never heard of it, and leads it’s own life.

      Whyyii?

    Leave a Reply