Thread: CSS question
View Single Post
Old 12-14-2011, 09:42 AM   #1
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 15,539
Karma: 13575467
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
CSS question

A project I am working on displays letters and quotations in smaller type and indented.

To show this I redefined <blockquote> in the CSS as follows:
Code:
blockquote {
margin-bottom:1em;
margin-top:1em;
margin-left:5em;
margin-right:0;
font-size:90%;
}
In addition I have defined a class:
Code:
.small{
font-size:90%;
}
In letters I like to show the salutation and signature with the first letter full cap and the remainder of the name in small caps.

If I leave the "font-size:90%;" in the <blockquote> the class="small" in the signature and elsewhere has no effect. If I remove the "font-size:90%;" from the <blockquote> the signature works fine. It seems that the <blockquote> definition cancels the class="small."

Is this normal (correct operation) or have I done something wrong?

Thanks
crutledge is offline   Reply With Quote