|
|
 |
Re: FN-FORUM: An easy one for you all (but not for me apparently!)
date posted 19th August 2003 14:30
PAMELA WHITTAKER wrote:
> When and how would you used PHP to create css. I am afraid it is not a
> eureka moment for me. There was a discussion about two weeks ago on a
> similar line if I remember rightly which I couldn't follow.
You could use PHP to generate CSS if the user agent you were using
didn't understand a particular client-side script (e.g. JavaScript) yet
you wanted to delived a certain CSS style based on the user agent's
identifying string.
So, say you had content for a web browser and a handheld thingumy, you
could check the user-agent server variable, see if it was a browser or a
handheld, then echo the relevant CSS for the right platform.
You could also use PHP/CSS if you want to introduce some randomness
(e.g. a changing background colour) and don't want to use Javascript.
Matt
NP: Assemblage 23 - Awake
|
 |
|