Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

When images have width and height attributes in them, as is often the… #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

taupecat
Copy link

… case with a CMS, if you set the max-width property in CSS to max-width: 100% but omit the height property altogether, the image could be distorted if the max-width value is invoked.

… case with a CMS, if you set the max-width property in CSS to max-width: 100% but omit the height property altogether, the image could be distorted if the max-width value is invoked.
@aurooba
Copy link

aurooba commented Mar 15, 2021

^ +1. I've been adding that myself.

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

Successfully merging this pull request may close these issues.

2 participants