[css-d] a button for a website to change background and text color

2008-03-20 Thread Krystian - Sunlust
Hey everyone,

I'm trying to get a button for a website, so that user can choose whether to
view the site and read text on a dark background with white text or on a
white background with dark text.

Problem is, I don't want to change the background of the body element, I
want to change background of container div.

I was trying to google it but since I can't really express myself in this
matter, I didn't find anything useful.

I would prefer purely xhtml/css solution, but if it can only be done with
js, so be it.

Thanks in advance, and hope it's not off topic.

Regards,

-- 
Krystian - Sunlust
Sunlust Designs
http://sunlust.net
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] a button for a website to change background and text color

2008-03-20 Thread David Laakso
Krystian - Sunlust wrote:
 I'm trying to get a button for a website, so that user can choose whether to
 view the site and read text on a dark background with white text or on a
 white background with dark text.


   



Maybe like a sort of style sheet switcher thing?
http://sperling.com/examples/styleswitch/index.php?set=style2

-- 
http://chelseacreekstudio.com/

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/