Forums

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

Home Forums CSS [Solved] Center img using 'vertical-align: middle' problem Reply To: Center img using 'vertical-align: middle' problem

#150528
__
Participant

vertical-align aligns inline blocks relative to the contents of the block – and an <img> has no “contents.” Giving the element a table-cell container is the best (and proper) solution.