Vertically Align in CSS

If you need to align anything vertically in CSS, apply the following class:

.verticalAlign {
position: relative;
top: 50%;
transform: translateY(-50%);
}

Posted by

Leave a Reply