<main> <div> Je suis un élément de niveau bloc avec une hauteur inconnue, centrée verticalement à l'intérieur de mon élément parent. </div> </main>
body { background: #3e58aa; font-size: 80%; } main { background: white; height: 300px; width: 200px; padding: 20px; margin: 20px; display: flex; flex-direction: column; justify-content: center; resize: vertical; overflow: auto; } main div { background: #CCDCCD; color: "3e58aa; padding: 20px; resize: vertical; overflow: auto; }