> Has anyone ever toyed with this idea before and if so what were the
> results???

I'm amazed how people seem to suddenly get this "A-HA!" moment. In the last
few months I've read various forum discussions, blog entries and
articles about "wouldn't it be great to create your CSS via PHP/ASP/etc?"

I did something like this about 4 years ago. It worked pretty fine, but
the main problem is that you risk putting extra strain on the server, as
the dynamic stylesheet needs to be created at every single request, and
can't be cached on the user's machine. So any bandwidth-saving benefits
that the separation of content and presentation might have go up in smoke.
You can limit the damage slightly by having a main, static stylesheet that
contains the bulk of styling and can be cached, and a second minimal one
for the few dynamic properties you want to have. At least this way only
the small one needs to be generated and sent to the browser.

Patrick
________________________________
Patrick H. Lauke
Webmaster
External Relations Division 
Faraday House 
University of Salford 
Greater Manchester 
M5 4WT 

Tel: +44 (0) 161 295 4779

e-mail: [EMAIL PROTECTED]
webteam: [EMAIL PROTECTED]

www.salford.ac.uk

A GREATER MANCHESTER UNIVERSITY  
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************

Reply via email to