JC Lee
JC Lee

Reputation: 2387

Unexpected padding/margin in image links

Below the main product image here: http://www.ivault.sg/shop/audio/speakers/bowers-wilkins-mm1-speakers There's a space between the line and the image that's not specified in CSS.

Inspecting element using firefox doesn't show any css paddings/margins that would produce that space too.

Which css property is causing this?

Upvotes: 1

Views: 246

Answers (2)

Eliran Malka
Eliran Malka

Reputation: 16263

this is a side-effect of the img display attribute being set to inline (which is the default value).

add a rule to update it to block:

#image {
    display: block;
}

… and it will be fixed :)

Upvotes: 3

Rohit Azad Malik
Rohit Azad Malik

Reputation: 32182

Hey you just define in your css

a img {
    border: 0 none;
    vertical-align: top;
}

Upvotes: 0

Related Questions