Reputation: 786
This is the style: style="width:30px;height:30px;
which I tried and other CSS to an image, but stays original size?
Upvotes: 0
Views: 1051
Reputation: 21
There is a possibility that your CSS might be getting overridden with any other CSS, to deliberate your CSS you can use !important For ex
style="width: 30px !important;height: 30px !important;"
It would be better if you share your html and css code for this issue.
Upvotes: 0
Reputation: 1
Try to write the code in body instead of style and see does it works or not.
Upvotes: 0
Reputation: 40
Maybe the image size is being overridden somewhere else. To counter this,
style="width: 30px !important;height: 30px !important;"
The !important specifies that the property given should override any other class property or image property
Upvotes: 4