Hi Paolo

> 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 may be wrong, but I think the "font" shorthand declaration is invalid 
(or at least incomplete) if no *size* and *font-family* is declared.

On <http://www.w3.org/TR/CSS1#font> the syntax declared is:
Value: [ <font-style> || <font-variant> || <font-weight> ]? <font-size> 
[ / <line-height> ]? <font-family>

I notice that while the first three values and line-height are in 
"optional" brackets, size and family are not.

It is altered slightly in the 2.1 declaration: 
<http://www.w3.org/TR/CSS21/fonts.html#propdef-font>
Value:  [ [ <'font-style'> || <'font-variant'> || <'font-weight'> ]? 
<'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon 
| menu | message-box | small-caption | status-bar | inherit

(And there is a neat description of the basis-settings at the bottom of 
that page)

But perhaps it will work if you let it inherit those two...

Best regards

Jesper Brunholm
______________________________________________________________________
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