Home  |  Linux  | Mysql  | PHP  | XML
From:Stephan Ebelt Date:Mon Feb  8 10:18:29 2010
Subject:Re: php selecting multiple stylesheets
On Sun, Feb 07, 2010 at 11:20:18PM -0500, David Mehler wrote:
> Hello,
> I'm trying to set up a web site. This site has multiple stylesheets,
> one default stylesheet that should be used if the other is not chosen.
> The second is a high contrast stylesheet and can be selected by user's
> who need it. I'm also thinking of adding two more for smaller and
> larger font selections. My issue is I want the high contrast sheet to
> be used on all subsequent pages and on subsequent visits to the site
> by user's who have selected it. I thought of using php with this and
> cookies. I'm using php5 and would appreciate any suggestions, googling
> has shown some examples, but none are working.


in CSS there is also the concept of 'alternate stylesheets' build in. A page can
basically specify as many stylesheets as it wants where one is default and all others are 'alternate'. The browser will then offer menu entries for the user to choose from. Ie in firefox you can choose the style from the menu at: View -> Page Style -> ...

Here's how it works in detail: http://www.w3.org/Style/Examples/007/alternatives (note that this site also has alternate styles available)

PHP could be used to define the default style sheet on a per user/application setting basis...

stephan


Navigate in group php.general at sever news.php.net
Previous Next


Your recent visits
Re: [PHP] Simple code obfuscation
Re: [PHP-INSTALL] Browser tries to download php file
Re: [PHP-INSTALL] Browser tries to download php file
Re: [PHP-INSTALL] Browser tries to download php file
there is no php-cgi



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants