diff options
author | Angelo Stavrow <contact@angelostavrow.com> | 2020-07-20 13:47:12 +0300 |
---|---|---|
committer | Angelo Stavrow <contact@angelostavrow.com> | 2020-07-20 13:47:12 +0300 |
commit | a63bac39b4c6976b1864696e16b5784085ad1a32 (patch) | |
tree | 871aa13e997bf0bc24646686f4fe4780519e9eb9 | |
parent | 58bdf8014132d8aab54c867079c894db136f293f (diff) |
Don't stretch smaller images, and respect source aspect ratio
-rw-r--r-- | static/css/style.css | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/static/css/style.css b/static/css/style.css index 162e1f8..be7adef 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -30,7 +30,10 @@ body { } img { - width: 100%; + display: block; + height: 100%; + margin: 0 auto; + max-width: 100%; } blockquote { |