Answers for "center an absolute image"

C#
9

center image with position absolute

.wrapper img {
  left: 50%;
  transform: translate(-50%,0);
  position: absolute;
  z-index: 1 
}
Posted by: Guest on July-24-2020

C# Answers by Framework

Browse Popular Code Answers by Language