html, body { height: 100%; } div#content { display: block; width: 95%; height: 100%; min-width: 20em; max-width: 50em; margin: auto; } div.tab-content { padding: 1em; border-bottom: 1px solid #ddd; border-left: 1px solid #ddd; border-right: 1px solid #ddd; } /* Make panels inside row line up with other rows by eliminating padding */ div.row div.panel div.panel-body { padding: 15px 0 15px 0 }