Hoy me encontré con un problema que todo el mundo conoce pero que puede que no recuerde con claridad
.
.father{
width:400px;
height:400px;
background:black;
margin: 0 auto;
}
2. Posicionamiento y desplazamiento relativos
.father{
width:400px;
height:400px;
background:black;
position: relative;
left: 50%;
transform: translate(-50%)
}
3. Posicionamiento relativo
father{
width:400px;
height:400px;
background:black;
position: relative;
left: 50%;
margin-left:-200px;
}
Recordar