News for hackers. Stuff that matters.
Re:Stefano’s Linotype: Why Programmers Suck at CSS Design (C... by cschneid on Tuesday October 28, 2008 @01:03AM (#346050)
But, since it then allows the developer to use em measurements everywhere, doesn't that allow your override font size to look better on the page?
Re:Stefano’s Linotype: Why Programmers Suck at CSS Design (C... by run4yourlives on Tuesday October 28, 2008 @01:11AM (#346054)
The only reason he uses em and not px is because IE won't let the user resize the text if the size is specified in pixels.

Every other browser handles font sizes specified in pixels just fine.

Re:Stefano’s Linotype: Why Programmers Suck at CSS Design (C... by orib on Tuesday October 28, 2008 @02:50PM (#346634)
They could simply use em measurements everywhere before.

Actually, the size of an 'em' isn't even defined relative to the size of a pixel by the CSS spec, so the claim in the article is dead wrong about it helping you use em when you mean 10 pixels. 62.5% of an unknown value isn't 10 pixels.

Re:Stefano’s Linotype: Why Programmers Suck at CSS Design (C... by avinashv on Tuesday October 28, 2008 @02:57PM (#346646)
Not quite--what you are doing is setting the font-size, and hence the 'em' to 10px. px and em are both independently relative to the font-size. There is nothing about the size of a pixel mentioned here.

It would also be very naive to argue that working in units of 10 is not much, much more convenient than working in units of 16.

Re:Stefano’s Linotype: Why Programmers Suck at CSS Design (C... by orib on Tuesday October 28, 2008 @03:05PM (#346655)
To quote the CSS 2.0 spec:

The 'em' unit is equal to the computed value of the 'font-size'...

Therefore, em is in units of font size, and is not independent of it. It's totally unrelated to 'px' values, except by luck. Not all browsers default to 16px text. (And yes, it's true that px are actually defined as the distance subtended by an angle of 0.0227 degrees at a typical viewing distance of the device, but they're typically used interchangably with screen pixels)