Forums

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

Home Forums CSS concerned about over-using table-cell to vertical-align Reply To: concerned about over-using table-cell to vertical-align

#234827
Shikkediel
Participant

Still using transforms for it myself (IE9+)…

.parent {
position: relative;
}

.text {
position: absolute;
top: 50%;
-ms-transform: translateY(-50%);
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}

http://caniuse.com/#feat=transforms2d