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.
This commit is contained in:
parent
af45a49ba4
commit
088ae87221
1 changed files with 1 additions and 0 deletions
|
|
@ -34,6 +34,7 @@
|
|||
.post-content {
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue