Answers for "centralizar div verticalmente css"

CSS
1

centralizar div verticalmente css

#parent {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}
#child {
	width: 20px;
}
Posted by: Guest on September-03-2021
0

centrer verticalement css

.parent {
  position: relative;
}
.enfant {
  position: absolute;
  top: 50%; /* poussé de la moitié de hauteur du référent */
  transform: translateY(-50%); /* tiré de la moitié de sa propre hauteur */
}
Posted by: Guest on March-18-2020

Browse Popular Code Answers by Language