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

Reset height of img to preserve aspect-ratio #47

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

Conversation

thierryk
Copy link

This example shows the importance of resetting the height of images styled with min/max-width

This [example](https://codepen.io/thierry/pen/jOBMjKv) shows the importance of resetting the height of images styled with min/max-width
@nhoizey
Copy link

nhoizey commented May 18, 2021

@thierryk this is a duplicate of #41, but yours modifies only the source file, which might be better.

@thierryk
Copy link
Author

@thierryk this is a duplicate of #41

Sorry, I should have checked the issues first; but now that I did, I'd say it may be better to simply go with #39

@nhoizey
Copy link

nhoizey commented May 19, 2021

Indeed! 👍

@iankii
Copy link

iankii commented Oct 11, 2022

@thierryk Hi, I know it's not a place for asking queries. But I'new to React and CSS resets.
So, how exactly are we supposed to use this reset?

  1. I mean copy-paste this CSS to our custom CSS file/index.css.
  2. OR is there any other way like installing it as a dev-dependency? If this one, please help me with how to use this way.

Thanks

@thierryk
Copy link
Author

@thierryk Hi, I know it's not a place for asking queries. But I'new to React and CSS resets. So, how exactly are we supposed to use this reset?

Check the README file?

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.

3 participants