#hero { min-height: 100vh; grid-template-columns: 1fr auto 1fr; /* * WIP : trying to find a solution to have both qualities : * - elements are spread across the page vertically ('hugo lamy developpeur' is not compacted on top) * - the details element 'voir le cv' don't jump when we unroll it * grid-template-rows: 1fr auto 1fr; grid-template-rows: auto auto 1fr; */ grid-template-rows: 50vh 1fr; .title { /* older safari doesn't not support flex gap I could use a workaround : https://stackoverflow.com/questions/65452057/flexbox-gap-workaround-for-safari but it doesn't work with wrap so instead I make them in columns and add a margin gap: 10px 30px; */ display: flex; flex-direction: column; align-items: center; > *:first-child { margin-bottom: 10px; } &#name { margin: 30px 0px 20px 0px; } &#title { margin: 20px 0px 20px 0px; } } .subtitle { text-align: center; display: inline-block; max-width: 700px; margin: 0px auto; } }