Hi guys,
Is this even possible? What I have is a site that gives people a chance to
set up their own information sections where they can record their own
content. I would like that an account holder can state which colours, font
sizes, font styles, etc they want for their section and have this
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
: www.mockorange.com.auP: 07 4953
4035F: 07 4953 40301st
Floor, 92 Victoria StreetMackay Q Australia
4740
- Original Message -
From:
Seona
Bellamy
To: WSG List
Sent: Wednesday, March 10, 2004 2:31
PM
Subject: [WSG] Dynamically populating
.
-Original Message-
From: Beau [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 10 March 2004 3:38 PM
To: [EMAIL PROTECTED]
Subject: Re: [WSG] Dynamically populating stylesheets?
You can do this with something like PHP, just a script that does something
like this
link rel=stylesheet type
Seona
There are a number of ways to do this - the easiest way to do it is by
populating some style tags dynamically from data in the db using a
script language such as CF or PHP etc (although that can add
pageweight). Another way would be to save a css file on the server for
each person and
[mailto:[EMAIL PROTECTED]Sent: Wednesday, 10 March 2004
3:47 PMTo: [EMAIL PROTECTED]Subject: Re: [WSG]
Dynamically populating stylesheets?
you could use inline styles to pull the required
value(s) from the database. eg: (background-color: % your.recordset.value
%;)
dynamically
Seona Bellamy wrote:
Just to make sure I understand you, Beau, the php code you show is the
content of that cssmaker.php that you put in the href?
Not sure if I can duplicate that with CF - it's that header bit
that is the biggest problem I guess. Does anyone know if there's a
similar
that header bit that is
the biggest problem I guess. Does anyone know if there's a similar function
in CF?
Thanks,
Seona.
-Original Message-
From: Beau [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 10 March 2004 3:38 PM
To: [EMAIL PROTECTED]
Subject: Re: [WSG] Dynamically populating
, 10 March 2004 3:53 PM
To: [EMAIL PROTECTED]
Subject: Re: [WSG] Dynamically populating stylesheets?
Seona
There are a number of ways to do this - the easiest way to do it is by
populating some style tags dynamically from data in the db using a
script language such as CF or PHP etc (although
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
Seona
You could assignment the stylesheet from a cookie with php variables.
Leo
*
The discussion list for http://webstandardsgroup.org/
*
Chris Blown said:
1. As Beau mentions dynamically generate the style sheet.
link rel=stylesheet type=text/css href=cssmaker.php /
Not sure here, but method 1 might have caching issues, I've never tried
this, so perhaps Beau can comment here.
you might run into some caching issues here,
12 matches
Mail list logo