2 ms·
Note that your CSS example is longer and requires combining two different syntaxes. And for one change, the difference in length and complexity is much more app
by ocdtrekkie 9y ago
Note that your CSS example is longer and requires combining two different syntaxes. And for one change, the difference in length and complexity is much more apparent.
> <span style="font-size: 10pt">Blah</span>
vs.
> <font size="2">Blah</font>
Which is easier to remember? Which is more obvious at a glance?
- maemilius 9y agoThe former. The problem is just that you've learned what the latter means better than the former. I'm the opposite. Plus, the former is an absolute value where the latter is not, as far as I've been able to tell. I know that first span will always be 10pt font. I have no idea what "2" even means in this context.
- ocdtrekkie 9y agoAnother commenter did you a favor and explained why using 10pt is worse than using 2: https://news.ycombinator.com/item?id=15927837 https://news.ycombinator.com/item?id=15927837
- reificator 9y agoThat may be true, but regardless of whether pt is a best practice, the point remains that it is still a unit. IMO that puts it ahead of the alternative example.