IE vs every browser

Discussion in 'Web Design and Development' started by tomoisyourgod, Aug 14, 2007.

  1. macrumors regular

    Joined:
    May 3, 2007
    Location:
    Liverpool, UK
    #1
    More in relation to Windows here, I'm doing a simple HTML page for a mailout, and IE 7.0 smooths the text (as opposed to the other browsers on windows, where the text remains 'jagged' like), therefore misaligning it and going all over the place.

    Was wondering if there's a way in which IE can read a different CSS document, so that the text doesn't go all over the *place?

    (*not all over the place, just slightly out of line)
     
  2. macrumors 68040

    Sdashiki

    Joined:
    Aug 11, 2005
    Location:
    Behind the lens
    #2
    you can always use the * hacks.

    anywhere in a style you want only IE to read put an * in front of it.

    Example:

    html{width:100%}
    *html{width:100px} only ie would read this and ignore the one above it

    .style{font-family: Arial; *font-weight: bold} only in IE will the font be bold
     
  3. thread starter macrumors regular

    Joined:
    May 3, 2007
    Location:
    Liverpool, UK
    #3
    SOLVED!

    thanks for that tip it's worked a treat!
     
  4. jng
    macrumors 65816

    jng

    Joined:
    Apr 6, 2007
    Location:
    Germany
  5. macrumors 68040

    Sdashiki

    Joined:
    Aug 11, 2005
    Location:
    Behind the lens
    #5
    No, IE is bad for having to use hacks. :rolleyes:
     
  6. macrumors member

    rajfantastic

    Joined:
    Jun 9, 2007
    #6
    i always attach a separate style sheet for IE like this:

    Code:
    <!--[if lte IE 6]>
    <link href="css/layout-ie6.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    
    <!--[if IE 7]>
    <link href="css/layout-ie7.css" rel="stylesheet" type="text/css" />
    <![endif]-->
     
  7. jng
    macrumors 65816

    jng

    Joined:
    Apr 6, 2007
    Location:
    Germany
    #7
    If you use the proper DOCTYPE, IE should render the box model correctly. I've never had to use an IE hack. Semantically it's bad.

    The best designers avoid such problems (and there are strategies to do so) and then use conditionals, which I've used to overcome things like the lack of transparent PNG support in IE6.

    In my opinion, hacks and mediocrity go hand in hand.
     

Share This Page