<h1>
の見出しをフレックスボックスを使用してページの中央に正確に配置する方法がわかりません。ここで水平と垂直の見出しをどのように配置するか(フレックスボックス)?
リンクです:https://jsbin.com/movevezesi/edit?html,css,output
所望の効果:https://tutorialzine.com/media/2016/06/landing-page-hero.jpg
HTML:
<div class="wrap">
<header class="header">
<a class="logo" href="#">logo</a>
<ul class="nav">
<li><a href="#">Features</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Sign In</a></li>
<li><a href="#">Free Trial</a></li>
</ul>
</header>
<div class="hero">
<h1>how to center horizontally and vertically this text ???</h1>
<h2>any</h2>
<h3>ideas???</h3>
</div>
</div>
はCSS: