Hi all!

Who can explain why I see italic and not bolded text instead of bold and
normal (not italic) text, with these rules:

#main #content * {font-size: 24px;
                  font-style: italic;
}
#main #content span {display: block;
                     margin: 24px 0;
                    font: bold normal;
}

?

I have this HTML srtucture:

<div id="content">
<p>text <span>text</span> text <span>text</span> text</p>
</div>

In theory, second font rule, though it's in short form, comes as second in
the cascade and it have more specificity  because of declaration of span
element against * (universal selector) ... or not?

To see bold and normal text I have to write specific rules:

#main #content span {display: block;
                     margin: 24px 0;
                    font-weight: bold;
                    font-style: normal;
}

Thank you to everyone who will answer this question.

Paolo

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

Reply via email to