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

fixed small size image ignored and resize #1582

Closed
nzcage opened this issue Jan 26, 2016 · 5 comments
Closed

fixed small size image ignored and resize #1582

nzcage opened this issue Jan 26, 2016 · 5 comments
Assignees

Comments

@nzcage
Copy link

nzcage commented Jan 26, 2016

Using <amp-img> with fixed small size (e.g. 18x12 px) makes image larger.
I use external stylesheet as well as width & height attr inside <amp-img>

@dvoytenko
Copy link
Contributor

Could you please share the code snippet or a link to reproduce?

@nzcage
Copy link
Author

nzcage commented Jan 27, 2016

Sure. http://www.wwwsitus.com.
I attempt to my own blog. It's still there with bigger size.
Here's the simple code:
<div class="en" title="Default"> <a href="/?default=en" title=""><amp-img src="support/img/en.png" title="English Language" alt="English Language" class="en" width="18" height="12"></amp-img></a> </div>

@dvoytenko
Copy link
Contributor

Thanks! I see the issue. It conflicts with padding defined elsewhere. We will fix this.

@nzcage
Copy link
Author

nzcage commented Jan 27, 2016

I rechecked my work and it's my fault ( I add padding at the image through class selector en :D ). sorry to trouble you. I was not thorough. Thanks for your reply. I guess this is not a bug, right?

@dvoytenko
Copy link
Contributor

I see. Correct. I will close then.

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

3 participants