Site logo

Archived topic

remove space below image

3 replies · Started by Davide on October 9, 2020

Viewing posts 1–4 of 4

Hi, I've a request which might be a bit odd (I'm missing out something for sure - end of the week etc).

Is there an "elegant" way, beside "margin-bottom:-6px;", to remove the space below an image?

Or, better, how can I have two or more images on top of each other without space? (see "private information" field for an example).

thank you!

Hi there,

If you can give the <div> with the image a custom class like no-line-height, then you can this CSS to remove the space:

.no-line-height {
    line-height: 0;
}

https://www.screencast.com/t/kDh3SVAk

Interesting! Thank you Leo!
have a nice weekend

No problem :)

This archived topic is closed to new replies.