diff --git a/IPython/frontend/html/notebook/static/css/style.min.css b/IPython/frontend/html/notebook/static/css/style.min.css
index 566aa49..7f95c07 100644
--- a/IPython/frontend/html/notebook/static/css/style.min.css
+++ b/IPython/frontend/html/notebook/static/css/style.min.css
@@ -937,7 +937,7 @@ a{text-decoration:underline;}
p{margin-bottom:0;}
a.heading-anchor:link,a.heading-anchor:visited{text-decoration:none;color:inherit;}
span.input_prompt{font-family:monospace;}
-input.raw_input{width: auto; font-family: monospace;}
+input.raw_input{width:auto;font-family:monospace;height:1em;line-height:1em;margin:-2px 0px 0px 0px;}
@media print{body{overflow:visible !important;} div#notebook{overflow:visible !important;} .ui-widget-content{border:0px;} #save_widget{margin:0px !important;} #header,#pager,#pager_splitter,#menubar,#toolbar{display:none !important;} .cell{border:none !important;} .toolbar{display:none;}}.rendered_html{color:black;}.rendered_html em{font-style:italic;}
.rendered_html strong{font-weight:bold;}
diff --git a/IPython/frontend/html/notebook/static/less/notebook.less b/IPython/frontend/html/notebook/static/less/notebook.less
index 4d1cc9c..7f76197 100644
--- a/IPython/frontend/html/notebook/static/less/notebook.less
+++ b/IPython/frontend/html/notebook/static/less/notebook.less
@@ -484,4 +484,7 @@ span.input_prompt {
}
input.raw_input {
width: auto;
+ height: 1em;
+ line-height: 1em;
+ margin: -2px 0px 0px 0px;
}