raty
raty copied to clipboard
add width and height to <img src=""/>
Hello, I would like the width and height set to the stars where can I do that in the file javascript? So
<img src = "" width = "13px" height = "12px" />
You can do it on your CSS.
No, I need it for Specify image dimensions within the img tag
You will need to change it like:
el.find('img').css({ height: '16px', width: '16px' });
Use a bigger image and change it size on render is not good practice because you will wast size load. Try to create an icon with the size you really need, or do that hack.
@SeoNerd
Is it solves your problem?