Seona

You've got a few choices 

1. As Beau mentions dynamically generate the style sheet. 
<link rel="stylesheet" type="text/css" href="cssmaker.php" /> 

2. Adjust inline style dynamically from the database

3. Have a collection of style sheets that are themes, Zen Garden style.
eg.
<link rel="stylesheet" type="text/css" href="<? echo $userStylesheet ?>"/>
 
Not sure here, but method 1 might have caching issues, I've never tried
this, so perhaps Beau can comment here.

Inline styles are fine, only include the one you want members to modify.
The theme style sheet method gives you less database content ( only the
name of the style sheet ) and better control of what the site looks
like, although this can limit the members choice of colours it does stop
members from setting the text and background colours both to black. I've
seen this sort of thing before and it goes something like this 

"Why can't I see anything its all black?"

Regards
Chris Blown
http://hinterlands.com.au
 
On Wed, 2004-03-10 at 15:38, Beau wrote:
> You can do this with something like PHP, just a script that does something
> like this
> 
> <link rel="stylesheet" type="text/css" href="cssmaker.php" />
> 
> <?php
> header('Content-type: text/css');
> 
> echo 'H1 { font-family: Arial; }
> // etc!
> 
> ?>
> 
> obviously, once you have something like that running, you can just change it
> so that the echo line pulls content from a database, then dumps it out,
> pretending to be a stylesheet :)
> 
> HTH
> 
> Beau

*****************************************************
The discussion list for http://webstandardsgroup.org/
***************************************************** 

Reply via email to