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

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -