diff --git a/IPython/frontend/html/notebook/static/css/notebook.css b/IPython/frontend/html/notebook/static/css/notebook.css
index b1d9214..6143b99 100644
--- a/IPython/frontend/html/notebook/static/css/notebook.css
+++ b/IPython/frontend/html/notebook/static/css/notebook.css
@@ -195,6 +195,7 @@ div.input {
page-break-inside: avoid;
}
+/* input_area and input_prompt must match in top border and margin for alignment */
div.input_area {
color: black;
border: 1px solid #ddd;
@@ -204,6 +205,7 @@ div.input_area {
div.input_prompt {
color: navy;
+ border-top: 1px solid transparent;
}
div.output {