Re: Cascading Styles
- From: dorayme <doraymeRidThis@xxxxxxxxxxxxxxx>
- Date: Tue, 23 Sep 2008 11:13:43 +1000
In article
<54dec97f-4db4-4472-9f8b-6f1f2fe3bb85@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
shapper <mdmoura@xxxxxxxxx> wrote:
<div class="Body">
<div class="Content">
<h2>First Header</h2>
<div class="Post">
<h2>Second Header</h2>
</div>
</div>
</div>
I have:
div.Body div.Content h2 {font-size: 2em;}
div.Post h2 {font-size: 1em;}
The first header is with the right size but the second not ...
shouldn't this work?
Try
div.Content h2 {font-size: 2em;}
div.Content div.Post h2 {font-size: 1em;}
--
dorayme
.
- References:
- Cascading Styles
- From: shapper
- Cascading Styles
- Prev by Date: Re: Cascading Styles
- Next by Date: border on 100% height body creates scroll
- Previous by thread: Re: Cascading Styles
- Next by thread: border on 100% height body creates scroll
- Index(es):
Relevant Pages
|