HighDots Forums  

Re: DIV with browser default colors?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: DIV with browser default colors? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve Fulton
 
Posts: n/a

Default Re: DIV with browser default colors? - 07-11-2003 , 11:10 AM






Marc wrote:
Quote:
Hi,
maybe you guys know something I don't know...

Is it possible (and how) to achieve the following:

1) A <BODY> with specific background-color, say blue.

2) A <DIV class='main'> (which contains the main content text of the page)
with no colors assigned at all.

The idea is that the 'main' class would be presented to the reader with the
browser's default color sheme. This is usually black on white but could be
anything. I'd like to grant the reader the freedom to select their own
colors for the content of the page, so I don't want to set it to
black/white explicitly in my style sheet. I would still like to play a
little with colors on the rest of the page, i.e. menus, title bar, footer,
space between these elements.

Problem is: If I don't set colors for the 'main' class, the background-
color of body shines through or is inherited.

Any ideas?
18.2 User preferences for colors
<URL:http://www.w3.org/TR/REC-CSS2/ui.html#system-colors>

--
Steve

Freedom is the right to be wrong, not the right to do wrong.
-John G. Diefenbaker




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.