Thread: CSS Question
View Single Post
Old 11-12-2020, 04:56 PM   #44
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
Quote:
Originally Posted by thiago.eec View Post
Well, first you said to be sure that if the "em" was included it wouldn't work. Now you say that testing it is meaningless because you knew it would work (since zero is default, according to you)?

Looks like a paradox to me... Or maybe some difficult [sic] to admit you were wrong.

P.S.: CSS properties do not default to zero. They default to their initial value, which varies according to the property. See: https://www.w3.org/TR/css-cascade-4/#defaulting
Yes, I was wrong about the "em," and I explained why I thought it shouldn't be included.

When I referred to "default," I meant, for example, if the rule "text-indent: 0;" is not included in a class, then the default for the text-indent for that class is zero. It's the same with margins and many other rules, when they aren't included in a class. Does that make more sense to you now?
deback is offline   Reply With Quote