|
Posted by Toby A Inkster on 06/27/07 12:13
dorayme wrote:
> Bergamot <bergamot@visi.com> wrote:
>
>> Non-zero length values require a unit: em, px, %, etc.
>
> This is right.
>
> However, there is a small implication here that it is quite ok
> not to use them for zero lengths. Technically this is correct.
> However, there is an issue of some gravity here.
<snip very interesting allegory about Sartre>
Also "line-height" doesn't require a length. When the length is missed
out, it behaves a bit like "em", but not quite.
For what it's worth, when I'm in early stages of CSS layout, I often set a
bunch of borders on elements to:
border: 0px solid magenta;
(and dotted/dashed lime/cyan/yellow/red/etc).
Then, with a single search-and-replace I can change 0px to 1.0px to see
borders around everything. Then search-and-replace back.
By leaving on the "px" my search-and-replace is able to differentiate
between these debugging borders, and other, more normal, occurrences of 0
in my style sheet.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 6 days, 15:46.]
The End of an Era
http://tobyinkster.co.uk/blog/2007/06/26/end-of-an-era/
[Back to original message]
|