Daniel Doesburg wrote:
medial | André Huf schreef:
After a zero length, the unit identifier is optional.
http://www.w3.org/TR/2005/WD-CSS21-20050613/syndata.html#length-units
Yes they (W3C) know that, but do all browsers know that?
I would not be surprised if there where differences between 0, 0px and
0em in some browsers.
Especially for big values of zero :-).
I've never run into a browser choking on 0 without a unit identifier.
As far as I know, it's completely safe. If you or anyone has evidence
of the need for the unit identifier in a particular browser, please send
it to the list. But in the meantime, I'm going to keep leaving off the
unit identifier on zero and save myself a couple milliseconds and bytes.
There is a bug in Dreamweaver if you use 0 in a background-position
rule, but that's just a CSS rendering issue in that particular program,
not a browser support issue.
Zoe
--
Zoe M. Gillenwater
Design Specialist
UNC Highway Safety Research Center
http://www.hsrc.unc.edu
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/