How to make changes just for one browser?

Discussion in 'HTML & Website Design' started by Michael T., Mar 31, 2009.

  1. #1
    Hi,

    I have some problems with a blogger template and I would change just some parts off the css but only for IE 7.0,how can I do it?

    So it doesn't affect any other browsers,just IE 7.0.
     
    Michael T., Mar 31, 2009 IP
  2. wwwbryan

    wwwbryan Well-Known Member

    Messages:
    181
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #2
    <!--[if IE7]>
    CSS ONLY FOR IE HERE
    <![endif]-->

    There ya go. ;)
     
    wwwbryan, Mar 31, 2009 IP
  3. Michael T.

    Michael T. Well-Known Member

    Messages:
    816
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Thank you,helped me a lot.
     
    Michael T., Mar 31, 2009 IP
  4. xira

    xira Active Member

    Messages:
    315
    Likes Received:
    8
    Best Answers:
    4
    Trophy Points:
    68
    #4
    BTW you can also do it in the CSS:

    .yourstyle{
    width: 100px; (this is for FF)
    #width: 120px; (this is for IE7 & IE6)
    _width: 130px; (this is for IE6 only)
    }
     
    xira, Apr 1, 2009 IP