SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Oct 2002
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Different Style Sheets for Browsers

    I hope someone can help me out with this. I need to have a file use a certain style sheet depending on what browser is being used to view the page. I have tried to look around to find a solution with minimal success. I have a slight idea of what to do, but nothing concrete. I think that I have to define some kind of JavaScript and have it link to a CSS document. Any help will be greatly appreciated. Thanks.

    - rompacz

  2. #2
    SitePoint Wizard Mincer's Avatar
    Join Date
    Mar 2001
    Location
    London | UK
    Posts
    1,140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    One thing you can do is create a sheet that will work in all browsers, and add the elements that don't work in NutScrape using an import, like so:

    Code:
    @import url( ignoredByNutscrape.css ) ;
    Otherwise you might want to consider using a scripted browser detection in something like php or asp, and then include the correct css link.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •