raty icon indicating copy to clipboard operation
raty copied to clipboard

add width and height to <img src=""/>

Open SeoNerd opened this issue 9 years ago • 4 comments

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" />

SeoNerd avatar Apr 11 '16 21:04 SeoNerd

You can do it on your CSS.

wbotelhos avatar Apr 11 '16 23:04 wbotelhos

No, I need it for Specify image dimensions within the img tag

SeoNerd avatar Apr 12 '16 07:04 SeoNerd

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.

wbotelhos avatar Apr 14 '16 19:04 wbotelhos

@SeoNerd

Is it solves your problem?

wbotelhos avatar Nov 02 '17 01:11 wbotelhos