SitePoint Sponsor

User Tag List

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

    Javascript to determine browser to load CSS?

    I was just wondering if there is a way to load a CSS file depending on the browser that you are using. In this case I am looking to load a CSS file for Safari only. maybe another option would be to use CSS hacks (but not webkit). Any help would be appreciated.

    Thank you

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,784
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    How do you plan on identifying that the browser is Safari? What does it handle differently from all other browsers that you can use to identify that the browser actually is Safari and not IE or Firefox pretending to be Safari?
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •