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

CSS Fix - HTML attributes making image stretching #5

Open
Nincha opened this issue Sep 14, 2020 · 0 comments
Open

CSS Fix - HTML attributes making image stretching #5

Nincha opened this issue Sep 14, 2020 · 0 comments

Comments

@Nincha
Copy link

Nincha commented Sep 14, 2020

Hi!

I don't know why this project has so few feedbacks, I've been using it for years (even now in VueJS projects, it's even simpler to load thanks to @load directive!) and it's amazingly useful ; SEO needs this for so many images. So I'll start by saying thanks for the work!

Just a quick fix suggestion in the CSS ; if you set width and height attributes on your image, the image ratio will be deformed (at least in "height" ratio display).

I fixed this that way in local:

.height.greenishCover img {
display:inline;
height:100%;
width:auto; <-------
margin-top:0 !important;
}

.width.greenishCover img {
display:block;
width:100%; <-------
height:auto;
}

Only flaw I found in years! 👍
Cheers!

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

1 participant