css - Background image no longer filling screen -
this question asked on @ wordpress development concerns more generic css issue asked post here instead. thread, , initial explanation, can seen here.
i have background-size: cover
image set header of single posts used fill screen, content beginning below. reason, no longer this. background image is scaling fit screen, content below (the text of post) beginning after overlaid text.
you can see mean in fiddle.
if set #hero-header
position:absolute; min-height: 100%; min-width:100%;
image fill screen when load page. problem content below runs on top, rather beginning off screen.
can suggest solution?
to clarify mean 'fill screen', following response below:
the div contains background image should fill entire screen when load it. @ moment background image scaling fit screen, #hero-header
not forcing content below off page – falling after text element, .hero-text
, within instead.
this has fixed problem:
background image moved html
, #hero-header
set height: 100vh
.
Comments
Post a Comment