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

Images get squashed if specifying width and height HTML tags #36

Closed
jtc opened this issue Dec 12, 2017 · 3 comments
Closed

Images get squashed if specifying width and height HTML tags #36

jtc opened this issue Dec 12, 2017 · 3 comments

Comments

@jtc
Copy link
Contributor

jtc commented Dec 12, 2017

If one specifies both a width and a height tag when inserting an image through HTML, the image gets squished in width. This seems to be due to the padding of images.

I've put up a demo of this issue at the links below, using a square image so it is clear to see when it gets squished.

Published site: https://jtc.github.io/Type-on-Strap-width-demo/2017/12/12/image-width-issue.html
Repository: https://github.com/jtc/Type-on-Strap-width-demo/blob/master/_posts/2017-12-12-image-width-issue.md

If you specify height only it is fine. If you specify width only, the image doesn't get squished, but it does get resized quite smaller than was specified.

@sylhare
Copy link
Owner

sylhare commented Dec 12, 2017

Oh nice catch!
I will look into this one, thanks.

@sylhare
Copy link
Owner

sylhare commented Dec 17, 2017

@jtc
well the size is working fine,

However the only thing is that images have a default width padding of 10%. So if you want to change the size of your image manually try with relative size using % instead.

So I am closing the issue.

@sylhare sylhare closed this as completed Dec 19, 2017
@jtc
Copy link
Contributor Author

jtc commented Dec 19, 2017

Ah, of course, will try relative sizing.

Thanks for looking into this @sylhare and the great theme 😃

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

No branches or pull requests

2 participants