|
Posted by jojo on 07/28/06 11:16
Jukka K. Korpela wrote:
>
>> BTW: ASFAIK you have to specify a unit (like px, em or %) in CSS,
>
> That's generally true, and important. If you say margin: 5, browsers
> _should_ ignore the rule, by CSS specs. Some browsers in some states
> treat it as margin: 5px, but this just adds to the confusion. So use
> units, Luke!
>
>> so you cannot set the margin/padding to "0" but to "0px".
>
> Actually you can. Zero is an exception: the unit can be omitted. That's
> logical, since the unit doesn't really matter when the number is exactly
> zero.
>
You really can? Thanks, I didn't know this before! Yes, of course it
doesn't matter which unit I use, but I've always thought that I have to
use any. Hope I remember this when I need to set some value 'zero' in
future...
jojo
Navigation:
[Reply to this message]
|