Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Border Adds Padding At Bottom of Images Re: Border Adds Padding At Bottom of Images

#134742
wolfcry911
Participant

I’ll take a stab, but in the future it would be beneficial to supply at least some code if not a link to a pen or the page in question.

I’m guessing you’re putting the border on the image’s container. The space below the image is reserved for font descenders because images are inline by default. So you could either set the image to display: block; or vertical-align: bottom. Either should work.