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
5 Antworten
+ 7
Beamlak Amare Try this
background-image:url("img-png");
background-repeat:no-repeat ;
background-size:cover;
+ 3
Use
background: url(big-image.jpg) 50% / contain no-repeat;
+ 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
+ 1
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Put it in the head section.
0
I tried that allamprabhu but it didn't work