|
 |
asp_web_howto thread: RE: Dynamically generate text styles
Message #1 by dfalconer@g... on Wed, 26 Jun 2002 16:11:46
|
|
Thanks Annie
> I give the user a choice of color combinations each choice has its own
stylesheet I store the users selection in a database. I pick up the users
stylesheet selection as they come into the site, store it in a session
variable and use it in the Link statement
<link rel="stylesheet" href="<%=session("CSSPath")%>" type="text/css">
The user doesn't get to choose any color they like but it's simple and you
don't have to touch the code to change the colors.
hth
-----Original Message-----
From: dfalconer@g... [mailto:dfalconer@g...]
Sent: 26 June 2002 14:32
To: ASP Web HowTo
Subject: [asp_web_howto] Dynamically generate text styles
I am working on a version of our website that will allow people to choose
the colour scheme they see on screen when they log into their account. Now
obviously if the colour changes then any text written on that colour
shoudl change to be readable e.g. black text on white, white text on
black. We use stylesheets and basically i can think how best to tie up the
variable determining background colour and the colour of the text. The
best i have come up with so far is to have multiple styles within the
stylesheet and change the class/p style depending on the background colour
variable.
I am also concerned about the impact of <%=> every time i add a background
colour etc..has ayone got any suggestions about what i am doing in general
cheers
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
Message #2 by Annie Hunt <ajhunt@b...> on Wed, 26 Jun 2002 14:06:45 +0100
|
|
I give the user a choice of color combinations each choice has its own
stylesheet I store the users selection in a database. I pick up the users
stylesheet selection as they come into the site, store it in a session
variable and use it in the Link statement
<link rel="stylesheet" href="<%=session("CSSPath")%>" type="text/css">
The user doesn't get to choose any color they like but it's simple and you
don't have to touch the code to change the colors.
hth
-----Original Message-----
From: dfalconer@g... [mailto:dfalconer@g...]
Sent: 26 June 2002 14:32
To: ASP Web HowTo
Subject: [asp_web_howto] Dynamically generate text styles
I am working on a version of our website that will allow people to choose
the colour scheme they see on screen when they log into their account. Now
obviously if the colour changes then any text written on that colour
shoudl change to be readable e.g. black text on white, white text on
black. We use stylesheets and basically i can think how best to tie up the
variable determining background colour and the colour of the text. The
best i have come up with so far is to have multiple styles within the
stylesheet and change the class/p style depending on the background colour
variable.
I am also concerned about the impact of <%=> every time i add a background
colour etc..has ayone got any suggestions about what i am doing in general
cheers
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
Message #3 by dfalconer@g... on Wed, 26 Jun 2002 13:32:18
|
|
I am working on a version of our website that will allow people to choose
the colour scheme they see on screen when they log into their account. Now
obviously if the colour changes then any text written on that colour
shoudl change to be readable e.g. black text on white, white text on
black. We use stylesheets and basically i can think how best to tie up the
variable determining background colour and the colour of the text. The
best i have come up with so far is to have multiple styles within the
stylesheet and change the class/p style depending on the background colour
variable.
I am also concerned about the impact of <%=> every time i add a background
colour etc..has ayone got any suggestions about what i am doing in general
cheers
|
|
 |