diff options
author | Mario Sangiorgio <mariosangiorgio@gmail.com> | 2017-08-29 02:48:13 +0300 |
---|---|---|
committer | Calin Tataru <calintat@gmail.com> | 2017-08-31 18:07:12 +0300 |
commit | a1b371cf9ca00a61c77176d7f9963d81dde2b948 (patch) | |
tree | 91af81bffc7b7d5eb6ff1a0c8c9ca28eb6a6916f | |
parent | 230ecdc0d4009099cd4d499e027a1a5d6d113ca0 (diff) |
Improved the responsiveness of img.
Without this tweak, when the viewport is smaller than the image, the image overflows the page.
With this commit it will be resized to fit the available width.
-rw-r--r-- | static/css/main.css | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/static/css/main.css b/static/css/main.css index 726c843..70d8ac4 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -88,3 +88,7 @@ a:hover { footer { border-bottom: var(--border-width) solid var(--accent); } + +img { + max-width: 100%; +}
\ No newline at end of file |