diff --git a/IPython/html/static/style/ipython.min.css b/IPython/html/static/style/ipython.min.css
index 04def6d..357f18f 100644
--- a/IPython/html/static/style/ipython.min.css
+++ b/IPython/html/static/style/ipython.min.css
@@ -892,6 +892,11 @@ div.output_stderr {
div.output_latex {
text-align: left;
}
+div.output_png div.ui-wrapper,
+div.output_svg div.ui-wrapper,
+div.output_jpeg div.ui-wrapper {
+ max-width: 100%;
+}
/* Empty output_javascript divs should have no height */
div.output_javascript:empty {
padding: 0;
diff --git a/IPython/html/static/style/style.min.css b/IPython/html/static/style/style.min.css
index 13cda70..c785f2e 100644
--- a/IPython/html/static/style/style.min.css
+++ b/IPython/html/static/style/style.min.css
@@ -9668,6 +9668,11 @@ div.output_stderr {
div.output_latex {
text-align: left;
}
+div.output_png div.ui-wrapper,
+div.output_svg div.ui-wrapper,
+div.output_jpeg div.ui-wrapper {
+ max-width: 100%;
+}
/* Empty output_javascript divs should have no height */
div.output_javascript:empty {
padding: 0;