how to make different stylesheet

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

5 replies · 387 views · started 16 years ago · 1 min read

5 participants
oruvan Junior · 24 posts #1

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

NoObCodeR Junior · 27 posts #2

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

subzero Super moderator Fellow · 3,954 posts #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... _______…

oruvan Junior · 24 posts #4

thanks for browser detect,but what about country?

metulj Super moderator Principal · 1,726 posts #5

oruvan wrote: 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ノ刀ノイリ!

prathamesh Newbie · 7 posts #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'; } ?>

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close