Le 27 juin 2013 à 14:42, "Jukka K. Korpela" <jkorp...@cs.tut.fi> a écrit :

> You could set e.g. font properties here, and they would be inherited by 
> <body> unless font properties are set directly on it. But what would be the 
> point? It is simpler to set them directly on <body>. Setting background is a 
> little different, since it is not inherited, but it largely acts as if it 
> were: if background is not set for <body>, it is transparent (the initial 
> value), so the background for <html> "shines thru". But again, it is simpler 
> to just set background on <body>.

Why ?

> 
>> body{
>>      font-size:16px;
>>      color:rgb(0,0,0);
>>      font-family:helvetica-neue, Verdana, Arial, sans-serif;
>> }
> 
> Technically, if you wish to have such settings as a global default for your 
> pages, setting them on <body> rather than <html> is the way to go.

Again, Why?

That is basically the question raised by the OP. 'Simpler' is not exactly a 
good or well reasoned argument.

(I would nitpick on the use of 'px' for font-size, but that is another subject)



Philippe
--
Philippe Wittenbergh
http://l-c-n.com




______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to