<header> <section class='hero-header'> <h1>Hero title</h1> <h2>Another landing page</h2> <button>Sign-up</button> </section> </header>
header { height: 400px; width: 100%; text-align: center; padding-top: 100px; color: white; overflow: hidden; background: #C04848; /* fallback for old browsers */ background: linear-gradient(rgb(72,0,72,0.8), rgb(192,72,72,0.8)), url("https://ik.imagekit.io/ikmedia/blog/hero-image.jpeg"); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(rgb(72,0,72,0.8), rgb(192,72,72,0.8)), url("https://ik.imagekit.io/ikmedia/blog/hero-image.jpeg"); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ background-size: cover; background-repeat: no-repeat; }