- 2
After adding value to Height="50%", the tree image become bigger. Not 50% smaller.
Any idea?
3 odpowiedzi
+ 2
Try this,
CSS :
img {transform: scale(0.5)}
0
50% is in relation to the element around your image, not the image itself.
0
While measuring with %, use width attribute only and it will keep ratio of image and height makes no difference with %.