Forums

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

Home Forums CSS Align Image to Top of Paragraph Re: Align Image to Top of Paragraph

#133034
Paulie_D
Member

I wouldn’t necessarily structure it that way but whatever your line height is, say 2em then there is 1em of space to be divided between the the area above and below the line.

Therefore, add half of that as top margin to the image and it should line up…at least close enough.

http://codepen.io/Paulie-D/pen/AlyfJ