How to give cover size to background | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How to give cover size to background

9th Mar 2019, 3:34 PM
Sunny Sharma
Sunny Sharma - avatar
2 Answers
+ 2
.image{ height:300px; width:100%; } .image img{ background-size:cover; }
14th Mar 2019, 8:48 PM
zubAyr Alee
zubAyr Alee - avatar
+ 7
Try something like this #myBackground {   background: url(bussiness.jpg);   background-size: cover; }
9th Mar 2019, 8:41 PM
Sławek J.