How can you make a smooth transition of the background from color to transparent, if the content can be more, and the background should smoothly move somewhere around 20% from the top (from transparent)?
It should be like this:
I try to make a gradient, but the transition is rough, if you set 50%, then the transition is too blurry.
.wrap { background: url(http://www.gettyimages.com.au/landing/assets/static_content/home/info-tabs3.jpg) center no-repeat; -webkit-background-size: cover; background-size: cover; padding-top: 50%; } p { color: #fff; padding: 2rem; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(12,12,13,0.6) 20%, rgba(51,51,54,1) 100%); } <div class="wrap"> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Autem, numquam qui reiciendis aperiam, nam amet? Dolore porro recusandae deserunt pariatur eum, facilis vitae. Optio ea cupiditate iure deleniti adipisci minus. </p> </div> box-shadow: inset 0 80% 50% #000; - It would be perfect, but you can't ask in%.

wrapgradient, notp. You should have a gradient mask on top of your image. - Ares