diff --git a/IPython/html/static/edit/less/edit.less b/IPython/html/static/edit/less/edit.less
index 758ce0115..99d07884f 100644
--- a/IPython/html/static/edit/less/edit.less
+++ b/IPython/html/static/edit/less/edit.less
@@ -15,7 +15,7 @@
}
#texteditor-container {
- .CodeMirror-gutter {
+ .CodeMirror-gutter, .CodeMirror-gutters {
@media print {
background-color: @body-bg;
}
diff --git a/IPython/html/static/notebook/less/codemirror.less b/IPython/html/static/notebook/less/codemirror.less
index 79fe102ed..058c55fc4 100644
--- a/IPython/html/static/notebook/less/codemirror.less
+++ b/IPython/html/static/notebook/less/codemirror.less
@@ -11,6 +11,7 @@
.CodeMirror {
line-height: @code_line_height; /* Changed from 1em to our global default */
+ font-size: @notebook_font_size;
height: auto; /* Changed to auto to autogrow */
background: none; /* Changed from white to allow our bg to show through */
}