On Tue, 17 Jun 2008 09:41:51 -0700, Stuart King wrote:
> Style sheets - This is a problem I am struggling with. What do you do when 
> different
> pages have slightly different layouts and positioning? Do you have one style 
> sheets
> that you maintain externally or several? Are there any articles on this or do 
> you have
> some insight? thank you.
>

I suggest you add a class to the BODY tag to control page-to-page variations.
To override a rule for just that "classed" page, simply add the class selector
to the beginning of the rule. Specificity does the rest.

Example:

HTML
<body class="wide">
CSS
#wrapper  #main {
  width: 66%;
  ...
}
.wide  #wrapper  #main {
  width: 100%;
  ...
}

Cordially,
David
--


______________________________________________________________________
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/

Reply via email to