Skip to content

Commit

Permalink
Add height: auto to img Elements
Browse files Browse the repository at this point in the history
This is necessary to maintain the aspect ratio of images.
  • Loading branch information
kasperbirch1 committed Dec 12, 2023
1 parent b1889b4 commit 9fc11ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/styles/scss/reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ a:not([class]) {

/* Make images easier to work with */
img {
height: auto;
max-width: 100%;
display: block;
}
Expand Down

0 comments on commit 9fc11ff

Please sign in to comment.