Last active
July 21, 2022 04:19
-
-
Save susanahernandezd/317b4c0bb72820e8625ff2099405971a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ASPECT RATIO | |
// compatible Safary 15 | |
img { | |
aspect-ratio: 16 / 9; | |
width: 100%; | |
} | |
// WIDTH/HEIGHT | |
// compatible Safary 14 | |
// In addition to <img>, this feature also works on <video> and <input type="image">. | |
// <img width="1598" height="899" src="…" alt="…" /> | |
img { | |
height: auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment