when I set an image as the background of a div the image is zoomed and most of its part is hidden y is it happening | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

when I set an image as the background of a div the image is zoomed and most of its part is hidden y is it happening

27th Jul 2020, 7:41 AM
Beamlak Amare
Beamlak Amare - avatar
5 Respostas
+ 7
Beamlak Amare Try this background-image:url("img-png"); background-repeat:no-repeat ; background-size:cover;
27th Jul 2020, 8:54 AM
Simba
Simba - avatar
+ 3
Use background: url(big-image.jpg) 50% / contain no-repeat;
27th Jul 2020, 8:07 AM
CalviÕ²
CalviÕ² - avatar
+ 1
Hello, please attach the link to your code in the thread Description. Without a code for inspection, it will be hard for others to see what the problem is, not to mention to suggest something. https://www.sololearn.com/post/75089/?ref=app
27th Jul 2020, 7:45 AM
Ipang
+ 1
<metaĀ name="viewport"Ā content="width=device-width, initial-scale=1.0"> Put it in the head section.
27th Jul 2020, 7:49 AM
Allamprabhu Hiremath
0
I tried that allamprabhu but it didn't work
27th Jul 2020, 9:27 AM
Beamlak Amare
Beamlak Amare - avatar