Home › Forums › CSS › concerned about over-using table-cell to vertical-align › Reply To: concerned about over-using table-cell to vertical-align
November 11, 2015 at 12:46 pm
#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%);
}