Re: order of properties

Hello Ernest,
On Wednesday, March 12, 2003 you wrote:
> On 12 Mar 2003, at 6:47, Christoph wrote:

>>> .boldtext {font:serif; font-weight:bold} causes the text to be
>>> bold.
>> Sure, because "font:serif", being invalid, is ignored.
>>   .boldtext {font: 1em serif; font-weight: bold}
>> would be bold, too.

> "font:serif" is perfectly valid. Check

Read the syntax description closely, and you'll note that the
declaration *has* to include a font-size value before the font-family
value. If it only contains a font-family value, it is not complete,
invalid, and should be ignored by the browser.


Mot du Jour:
The best cure for insomnia is to get a lot of sleep.

Received on Wednesday, 12 March 2003 14:21:23 UTC