0
CSS property to change img shape/size
is there a property to change the shape/size of an img both width and height simultaneously? (so the image won't look distorted on one side)
4 Réponses
+ 5
Try: max-width:50%; max-height:50%; It keeps the proportions.
+ 5
or just control the width and height CSS properties yourself
+ 2
oh, ok thanks! ill try that!
0
yes! taking the same max-width and max-height together with either width or height works! thanks