Answers for "css centrer absolute"

C#
9

css center position absolute

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

centrer un élément absolute

.truc-a-centrer {
  position: absolute; /* postulat de départ */
  top: 50%; left: 50%; /* à 50%/50% du parent référent */
  transform: translate(-50%, -50%); /* décalage de 50% de sa propre taille */
}
Posted by: Guest on January-28-2021

C# Answers by Framework

Browse Popular Code Answers by Language