#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    6
    Rep Power
    0

    Targeting specific browsers with styles


    hi guys,

    ive built a website using html & css 2.1 and it all validates and displays in all modern browsers fine. However, Ive been doing some cross browser testing today and discovered that IE 7&8 a specific background style ive used is not displaying. So i was wondering if some anyone could tell if there was a hack you could write in the css to say If this is being viewed in IE 7 then display the following styles.

    Thanks guys

    Paul
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2009
    Location
    Nebraska, USA
    Posts
    875
    Rep Power
    275
    This is what you are looking for, I believe....http://www.quirksmode.org/css/condcom.html
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    6
    Rep Power
    0
    Cheers Don

    Ill have a look at it

    Paul

IMN logo majestic logo threadwatch logo seochat tools logo