Lst Recv wrote:
Do classes cascade?
That is:
<style>
a.content { font-size: 120%; }
</styke>
<div class="content">
<a href="url">url</a>
</div>
I think what you are looking for is this.
<style>
div.content a { font-size: 120%; }
</style>
<div class="content">
<a href="url">url</a>
</div>
By specifying a.content, you were saying that the anchor tag should be
marked <a href="url" class="content">. Instead, specifying div.content
a in the stylesheet, means that all <a> tags in <div class="content">
should have 120% font size.
Is that correct? If not, what is the preferred way of doing it?
(Also, BTW, what is what I sometimes see "font-size: 80%/130%" - what is the / ?
)
80% is the font size. 130% is the line height. It could also be
written like this:
.foo {
font-size: 80%;
line-height: 130%;
}
Hope this helps,
Matthew
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/