Re: CSS / PHP / Javascript

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As a footnote, do NOT then generate different CSS for each browser.  Simply 
generate different <link> tags in the header to point to style.css or 
style-broken-ie.css.  Those should both be static, ordinary files so that you 
get all of the browser's caching magic free of charge.

On Tuesday 14 November 2006 22:15, zoticaic wrote:
> I guess the $_SERVER predefined variable can be used determining the
> platform and browser/user-agent and loading the CSS of choice.
>
> http://www.php.net/manual/en/reserved.variables.php
>
> Enjoy!
>
> Jervin
>
> > -----Original Message-----
> > From: Ed Lazor [mailto:edlazor@xxxxxxxxx]
> > Sent: Wednesday, November 15, 2006 12:01 PM
> > To: PHP General List
> > Subject:  CSS / PHP / Javascript
> >
> > I'm reading a book on CSS and how you can define different style
> > sheets for different visitors.  I'm wondering how you guys do it.
> > The book recommends using Javascript functions for identifying the
> > user's browser and matching them with the corresponding style
> > sheets.  Anyone using PHP for this instead - specifically with
> > defining style sheets for different target browsers and platforms?
> >
> > -Ed
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Larry Garfield			AIM: LOLG42
larry@xxxxxxxxxxxxxxxx		ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux