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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -