You are here: Re: To the gurus out there - a conundrum. « HTML « IT news, forums, messages
Re: To the gurus out there - a conundrum.

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация