Skip to content

css example #3

@marin-df

Description

@marin-df

Hello,
Thank you for this code !
I think it would be good to include in the sample code this css to the case where the image has a border ( another display is not good )

.item img {
max-width: 100%;
max-height: 100%;
vertical-align: bottom;
}

=>

.item img {
max-width: 100%;
max-height: 100%;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box
}

I have not found any reason to:

.first-item {
clear: both;
}

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