#container { } #bar { position: fixed; left: 0; right: 0; top: 0; width: 100%; background: #1e1e1e; color: #c8c8c8; line-height: 2em; } #bar .bar-wrap { display: flex; padding: 10px 10px 10px 10px; } #bar .left { float: left; } #bar .left a { text-decoration: none; background: #4c4c4c; color: #c8c8c8; padding: 5px 5px 5px 5px; margin: 0 5px 0 0; } #bar .search-box { border: none; padding: 5px 5px 5px 5px; } #bar input { display: inline-block; vertical-align: middle; }