Vertically and horizontally center an element

Will center an element both vertically and horizontally in the element's parent element. Element. I've not said "element" enough. Element element element!

Image with set of moving eyes in dead center

.class {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
No Comments
Back to top