Thanks Chris. I should be ready to actually tackle this issue in the next
few days (fingers crossed) and I will keep in mind your suggestions, along
with everything else that people have kindly pointed me at. :)

At the moment, I think I am favouring the inline version, which I am taking
to mean putting the stylesheet in the <head> of the document and pulling the
values out of the database from there. It seems a lot less complicated. I
like less complicated right now... I have enough to do that IS complicated.
*grin*

I suppose for the setting both to black, you could always do a validation
check when they are entering colours into the database, that foreground and
background colours do not match. :)

Cheers,

Seona.

-----Original Message-----
From: Chris Blown [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 10 March 2004 4:16 PM
To: WSG
Subject: Re: [WSG] Dynamically populating stylesheets?



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/
*****************************************************


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.605 / Virus Database: 385 - Release Date: 1/03/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.605 / Virus Database: 385 - Release Date: 1/03/2004

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

Reply via email to