Forums

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

Home Forums CSS vertical centering nested content in a div Reply To: vertical centering nested content in a div

#150008
Paulie_D
Member

I did use display:table/table-row/table-cell and vertical-align:middle, which works perfectly on modern browsers

I’d go with that if for no other reason than it works without using any magic numbers.