CSS question? possibly

sparkle

Senior member
Nov 4, 2000
903
0
0
Here is my site I need a little help. What would be the easiest way for me to allow visitors to change the color scheme of the whole site.

For example, I want to have 3 tabs "green" "blue" "yellow" and if the tab was clicked, all of the colors would change to reflect this.

I don't want to have 3 sets of pages for everything. I would like to be able to make one page, that can change.

Is this something that can be done with css?

Thanks!
 

Anarchos

Member
Feb 7, 2001
34
0
0
I would create classes for the different elements and then create a dynamic CSS page with PHP, which is what I do for my site. Then create a variable for each separate color on your site; if $color == "blue", set $c[0] to "#ff0000" $c[1] to "#993300", etc. and echo em out in your CSS page.
 

Kappo

Platinum Member
Aug 18, 2000
2,381
0
0
or you can use JavaScript and use cookies as well...then it stays when the visitor comes back...