Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SeoNerd opened this issue Apr 11, 2016 · 4 comments
Open

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

SeoNerd opened this issue Apr 11, 2016 · 4 comments

Comments

@SeoNerd
Copy link

SeoNerd commented Apr 11, 2016

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

@wbotelhos
Copy link
Owner

You can do it on your CSS.

@SeoNerd
Copy link
Author

SeoNerd commented Apr 12, 2016

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

@wbotelhos
Copy link
Owner

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
Copy link
Owner

@SeoNerd

Is it solves your problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants