Very slight width discrepancy between Mozilla and IE

Discussion in 'HTML & Website Design' started by mike323, Jul 2, 2006.

  1. #1
    Does ayone know a hack for setting the width of a border in just Internet Explorer only?

    I've been struggling with the width of a border/background which appears 1-2 pixels wider in IE than in Mozzila and Opera. It's perfect in Mozilla and Opera but not quite there in IE. Thank you.
     
    mike323, Jul 2, 2006 IP
  2. FeelLikeANut

    FeelLikeANut Peon

    Messages:
    330
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <!--[if IE]>
    
    <style type="text/css">
    /* stuff */
    </style>
    
    <![endif]-->
    Code (markup):
     
    FeelLikeANut, Jul 2, 2006 IP
  3. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #3
    On which site? You could do it like the about post, but it does add style to the structure of the page (rather than in a stylesheet), something that should be avoided with styling.
     
    AdamSee, Jul 3, 2006 IP
  4. brian394

    brian394 Well-Known Member

    Messages:
    226
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #4
    Have you tried using a strict DTD (Document Type Definition)? Sometimes this can help with getting things to display correctly in Internet Explorer.
     
    brian394, Jul 5, 2006 IP