<main> <div> Je suis une ligne centrée verticalement ! </div> </main>
body { background: #3e58aa; font-size: 80%; } main { background: white; margin: 20px 0; padding: 40px; } main div { background: #CCDCCD; color: #3e58aa; font-size: 1.5em; height: 100px; line-height: 100px; padding: 20px; width: 50%; white-space: nowrap; }