html - Resize image when resizes window -


everyone!

i guess problem simple, can't figure out how solve :/

i make image full height , full width, , when resize windows' width, image resizes correctly example: https://avada.theme-fusion.com/resume/

i tried play around width , height, can't have same result

thank !

the property you're looking background-size: cover.

body{   background-image: url('https://avada.theme-fusion.com/resume/wp-content/uploads/sites/66/2016/07/home_bg.jpg');   background-size: cover;   background-position: center; } 

you'll need use css background-image instead of <img/> achieve result.

here's demo: https://jsfiddle.net/7rqm0mtb/


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -