|
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]
|