Reply to Re: New to CSS....simple question maybe

Your name:

Reply:


Posted by Ben C on 12/20/07 14:47

On 2007-12-20, Bergamot <bergamot@visi.com> wrote:
> Jonathan N. Little wrote:
>>
>>
>> img.featurectr {
>> border-width: 0px; <-- try "border: 0;"
>
> Why? border-width:0; removes the border. Changing it to the border
> shorthand property doesn't make any difference, it's just a few less
> keystrokes.
>
>> margin: 15px auto; <-- if you change images back to inline use
>> padding not margin
>
> FYI, margin works on inline images, too. The auto value won't center it,
> of course, but margin:15px; will still put space between images. Using
> padding instead only affects collapsing margins, at least in this case.

Or rather not in this case-- there's never any margin collapsing between
margins on inline boxes or inline blocks.

It's only vertical margins on normal-flow blocks that collapse.

[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

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