diff --git a/IPython/frontend/html/notebook/static/css/notebook.css b/IPython/frontend/html/notebook/static/css/notebook.css
index fd16afd3e..0a1f975e0 100644
--- a/IPython/frontend/html/notebook/static/css/notebook.css
+++ b/IPython/frontend/html/notebook/static/css/notebook.css
@@ -242,6 +242,10 @@ div.text_cell_render {
color: black;
}
+.CodeMirror span {
+ vertical-align: bottom;
+}
+
.CodeMirror {
line-height: 1.231; /* Changed from 1em to our global default */
}