Hi,

> body#page.corporate

That has worked! Thank you so much!

Cheers, CB



On 23/04/2010, at 7:27 PM, Christian Kirchhoff wrote:

>
> Am 23.04.2010 12:18, schrieb Chris Blake:
>> Hi,
>>
>> I have added page class suffix to some pages on my website giving the
>> <body id="page" class="corporate">.
>> I want to rewrite the CSS for the h1 in only the corporate pages.
>> However my body.corporate gets overwritten by #page styles. What  
>> order
>> can I layout these IDs, classes so that I only style h1 for corporate
>> body?
>>
>> Thanks, CB
>> ______________________________________________________________________
>> css-discuss [cs...@lists.css-discuss.org]
>> 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/
>>
>
> Maybe this has some good ressources for understanding css specificity:
> http://www.d.umn.edu/itss/support/Training/Online/webdesign/css.html#cascade
>
> A selector like body#page has a higher specificity than  
> body.corporate.
> But body#page.corporate should have an even higher specificity.
>
> Best regards
>
> Christian Kirchhoff
> *Editura GmbH & Co. KG*
> Tempelhofer Damm 2 · 12101 Berlin
> www.editura.de
> AG Berlin-Charlottenburg · HRA 43189 B · USt.Id. DE217180548
> Geschäftsführer: Ralf Szymanski
> ______________________________________________________________________
> css-discuss [cs...@lists.css-discuss.org]
> 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/
>

______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
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