If Mac load M.CSS if PC load P.CSS

Discussion in 'PHP' started by Matt Ridge, Nov 23, 2011.

  1. #1
    Is there a way without javascript how to load a specific CSS file for a Mac or PC? I'm not worried about the browsers types, I've already dealt with that side of it, I just need to know if there is a way to load a Mac or PC specialized CSS script or not...


    Thanks...
     
    Matt Ridge, Nov 23, 2011 IP
  2. Alex Roxon

    Alex Roxon Active Member

    Messages:
    424
    Likes Received:
    11
    Best Answers:
    7
    Trophy Points:
    80
    #2
    Yes there is. You'll want to look at the user agent and then load your CSS file depending on what it contains. Look up PHP's predefined $_SERVER variable.
     
    Alex Roxon, Nov 23, 2011 IP