how to make different stylesheet

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    how to make different stylesheet

    is there any way to make different stylesheet for the following;
    1.for example a site when seen in mobile should display a stylesheet
    & a different one while viewed in pc.
    2.different stylesheet for different country
    3.different stylesheet for different browsers

    #2
    yes..if Im not mistaken..it is called browser detect

    Comment


      #3
      That can be done but tell ya it will over load your server trying to commaned it to load.

      But if you want you can do two things..

      Load xhtml+xml for mobiles
      Load xhtml/html for computers

      This will be better idea.
      Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
      Visit: WapMasterz Coming Back Soon!
      _______
      SCRIPTS FOR SALE BY SUBZERO
      Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
      FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
      _______
      Info & Tips
      php.net
      w3schools.com

      Comment


        #4
        thanks for browser detect,but what about country?

        Comment


          #5
          Originally posted by oruvan View Post
          thanks for browser detect,but what about country?
          IP_2_country script...
          but that could overload server...
          if you got many members...
          it'll mean MANY requests to server...
          and thats not good...
          It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
          ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
          ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
          キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

          Comment


            #6
            if ur shared hosting users dont use IP_2_country script..
            my hosting two time suspend due to cpu limit overload..!

            try dis code for different stylesheet ,mobile n pc
            <?
            $userBrowser = $_SERVER['HTTP_USER_AGENT'];
            if(stristr($userBrowser, 'Mozilla'))
            {
            include 'pc.css';
            }
            else
            {
            include 'mobile.css';
            }
            ?>

            Comment

            Working...
            X