How to give cover size to background | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 4

How to give cover size to background

9th Mar 2019, 3:34 PM
Sunny Sharma
Sunny Sharma - avatar
2 Antworten
+ 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.