Reply to Re: Table cells

Your name:

Reply:


Posted by Brian Robertson on 06/27/07 20:35

Toby A Inkster wrote:
> 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.
>

Let me explain where my mistake came from. I am reading a book about CSS
and slowly learning new things, but these things take time. Meanwhile, I
wanted to sort the padding problem out. Previously I had highlighted the
text and put the padding in through Frontpage settings. The code was an
inline style and it said margin-left: 3. There was no unit shown. From
this I simply tried to guess the proper rule and then turned to you lot
for help. It worked but was clumsy, which is why I wanted it out.

Brian.

[Back to original 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

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