Thread: CSS Question
View Single Post
Old 11-12-2020, 11:35 AM   #30
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,230
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by deback View Post
I'm pretty sure it won't work if you include the "em" when the value is 0. That is, the intended effect for that class will not happen if you include the "em" when the value is 0.
I beg to differ. It works just fine using this:

Code:
p {
   text-indent: 0em;
}
Also, see the CSS specification:

Quote:
4.3.2 Lengths
Lengths refer to distance measurements.

The format of a length value (denoted by <length> in this specification) is a <number> (with or without a decimal point) immediately followed by a unit identifier (e.g., px, em, etc.). After a zero length, the unit identifier is optional.
https://www.w3.org/TR/CSS22/syndata.html#length-units
thiago.eec is offline   Reply With Quote