diff --git a/layouts/shortcodes/fig.html b/layouts/shortcodes/fig.html
index 5f4d565..54bd8ca 100644
--- a/layouts/shortcodes/fig.html
+++ b/layouts/shortcodes/fig.html
@@ -24,8 +24,9 @@
{{ else if .Get "caption" }}alt="{{ .Get "caption" | markdownify | plainify }}"
{{ end }}
{{ with .Get "align" }}align="{{ . }}"{{ end }}
- {{ with .Get "width" }}width="{{ . }}"{{ end }}
- {{ with .Get "height" }}width="{{ . }}"{{ end }} />
+ {{ with .Get "height" }}width="{{ . }}"{{ end }}
+ {{ with .Get "width" }}width="{{ . }}"{{ end }} style="max-width: 100%;"
+ />
{{ if .Get "link"}}{{ end }}
{{ if ($fig.Get "caption") }}