.search-box{ width: 100%; height: 42px; display: flex; align-items: center; } .search-svg{ position: absolute; padding-left: 10px; } .clear-svg{ position: absolute; //float: right; padding-left: 320px; } .top-single-search{ width: 100%; height: 100%; border:0 solid rgba(38, 104, 255, 0.2); border-radius:6px; padding: 0 40px; }