<main> <div> Je suis un élément de niveau bloc d'une largeur et une hauteur inconnue, centré verticalement à l'intérieur de mon élément parent. </div> </main>
body { background: #3e58aa; font-size: 80%; padding: 20px; } main { background: white; height: 200px; width: 60%; margin: 0 auto; padding: 20px; display: flex; justify-content: center; align-items: center; resize: both; overflow: auto; } main div { background: #CCDCCD; color: #3e58aa; width: 50%; padding: 20px; resize: both; overflow: auto; }