.searchBarContainer{ position: fixed; top: 10rem; z-index: 100; width: 60%; background: #fff; } .searchBarForm{ display: flex; } .searchBarForm input{ background: none; box-shadow: none; height: 2em; } .searchBarForm input:focus{ outline: none; }