Skip to content

CSS Fix - HTML attributes making image stretching #5

@Nincha

Description

@Nincha

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions