html - CSS background-image property -
here html:
<div id="banner" style="background-image: url("img/banner.jpg")"> <img src="img/logo.png" alt="logo" /> </div>
and css:
#banner { width: auto; height: 100vw; background: url("/img/banner.jpg");
i want banner.jpg background of div full viewport fill... do?
add following css code:
#banner{ width: %100; }
Comments
Post a Comment