Skip to content
This repository was archived by the owner on Sep 5, 2021. It is now read-only.

Commit 088ae87

Browse files
author
James Taylor
committed
Explicitly define height as auto
While using only width at 100% it stretches all imgs in the post to width of parent div. But doesn't maintain aspect ratio. This corrects this issue. Regardless, setting width to 100% makes img tags width/height be ignored.
1 parent af45a49 commit 088ae87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: _sass/_post.scss

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
.post-content {
3535
img {
3636
width: 100%;
37+
height: auto;
3738
}
3839
}
3940
}

0 commit comments

Comments
 (0)