Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to implement multiple style sheets

Status
Not open for further replies.

Bravogolf

Programmer
Nov 29, 2002
204
GB
Is there somewhere that provides an implementation of multiple style sheets that I could use?

For example, but that one doesn't seem to work for me!

Basically, I have a site at but I want to be able to change the site css style as well as the font size (server side preferably!).

Or, even, have two seperate implementations that do not conflict!
 
PHP is a server side scripting language. To achieve what you are asking for you are better off asking in the JavaScript forum216
PHP cannot be used to switch style sheets in the client - beyond outputting a specific link to a specific stylesheet there's not much you can do.
 
They are just doing what I said: outputting some specific information (here based on a cookie) in a link tag.

Since you pointed to the implementation, what holds you back from using their technique?
 
Why not just write a php code that would change the .css file to whatever it needed to be? This would create a dynamic way of creating a style sheet.

David Kuhn
------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top