centrer des éléments CSS
// add to the parent element
.parent {
display: grid;
place-items: center;
}
Handsome Hippopotamus
// add to the parent element
.parent {
display: grid;
place-items: center;
}
.container{
margin: 0;
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
width: /* Define the width here; */
height: /* Define the height here; */
}
/*You have to define the width and height! */
#inner {
width: 50%;
margin: 0 auto;
}