Is it possible to resize "png image" in css? I tried resizing an image but it stays the same. Specify me why it happens so? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is it possible to resize "png image" in css? I tried resizing an image but it stays the same. Specify me why it happens so?

I wanna add "png image" as a pseudo element. The size is enormous. Don't know how to resize. Please help! You may send me good resources that describes this behavior of images well.

30th Apr 2020, 7:45 PM
Timur Myngbay
Timur Myngbay - avatar
1 Answer
+ 2
Setting a min- or max-width should help. You can also check these websites for more informations: https://www.w3schools.com/css/css_rwd_images.asp https://www.geeksforgeeks.org/resize-image-proportionally-with-css/
1st May 2020, 1:58 AM
Abdoul Hakim
Abdoul Hakim - avatar