0

How can i fit the background image? My image has 2560x1600 pixels

Background image stretch/fit

3rd Dec 2016, 7:35 AM
James Vincent Bartolome
James Vincent Bartolome - avatar
3 Réponses
+ 2
in css it is background: url(flower.jpg); width: 100%; height: 100%; there is html attribute too <IMG src="flower.jpg" width=100% height=100% ... this will auto adjust the image even if it is big. there is cover
3rd Dec 2016, 3:04 PM
Sandeep Chatterjee
+ 1
background:url('...blabla.jpg'); background-size: 100% 100%; OR background-size: 100%;
3rd Dec 2016, 12:56 PM
Nedim Kanat
Nedim Kanat - avatar
0
background: url(my-image.jpg) no-repeat; background-size: cover;
3rd Dec 2016, 11:34 AM
Constantin Nistor
Constantin Nistor - avatar