Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
CSS for a PS3 and mobile and Print
Old 08-20-2007, 05:15 PM CSS for a PS3 and mobile and Print
Super Talker

Posts: 116
Name: Paul
Location: South Africa
Trades: 0
Is there a way to have multiple style sheets on the same site and on the same .php page so as an example someone comming in from a ps3 or mobile gets a different style sheet so the page is not too huge on other devices, also I would like the page to print without the header and footer information and dropdown links etc.

please help and try to keep it simple or just give expanded explanations.
scorpioserve is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-20-2007, 05:18 PM Re: CSS for a PS3 and mobile and Print
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Of course, just add additional links to the additional stylesheets.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-20-2007, 05:48 PM Re: CSS for a PS3 and mobile and Print
Super Talker

Posts: 116
Name: Paul
Location: South Africa
Trades: 0
Quote:
Originally Posted by LadynRed View Post
Of course, just add additional links to the additional stylesheets.
Sorry to be silly but do these additional style sheets need to be certain naming conventions or somethinng, could you try to explain or give me a link to some kind of tutorial, for the not so intelectually gifted aduhhh

Thanks for the confirmation though at least I know im not just barking up the wrong tree.
scorpioserve is offline
Reply With Quote
View Public Profile
 
Old 08-20-2007, 05:53 PM Re: CSS for a PS3 and mobile and Print
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
No, CSS is not limited to any naming conventions other than using the proper selectors.

If you link to multiple stylesheets all you need is multiple links:
<link rel="stylseheet" href="main.css" type="text/css" />
<link rel="stylseheet" href="extra1.css" type="text/css" />
<link rel="stylseheet" href="extra2.css" type="text/css" />
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-20-2007, 10:58 PM Re: CSS for a PS3 and mobile and Print
Super Talker

Posts: 116
Name: Paul
Location: South Africa
Trades: 0
Ok that sounds easy enough, now do you know how I would tell the clients browser to use which stylesheet. I know how to get information on what browser they are using but how do I tell it that when you see x browser to use x stylesheet, and for y browser use y stylesheet, and especially for print use stylesheet z lets say.
scorpioserve is offline
Reply With Quote
View Public Profile
 
Old 08-21-2007, 12:08 PM Re: CSS for a PS3 and mobile and Print
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Why do you need different stylesheets for different browsers ? Rarely do you need that any more, and the only real reason is to use conditional comments and separate css sheets to force IE 6 and below to behave similar to the more standards-compliant browsers.

If you define a print stylesheet, the browsers will use it to style your printed page. There's lots of info about the different media stylesheets here:
http://css-discuss.incutio.com/?page=MediaStylesheets
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-21-2007, 01:08 PM Re: CSS for a PS3 and mobile and Print
Super Talker

Posts: 116
Name: Paul
Location: South Africa
Trades: 0
thanks so much the link you provided had the info I was looking for, as for my reasoning, I have viewed my pages on my ps3 and my mobile and both do not look too good, I have also tried to staw away from any shockwave, flash, cookies etc as my target audience probably would be uncertain if their browser said download flash here, or will you accept a cookie. I just want it to be plain sailing.

Thanks for all the advice.
scorpioserve is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS for a PS3 and mobile and Print
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.43938 seconds with 12 queries