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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -