Use CSS variable and make search Bar This is CSS sheet .header-grvu { background-color : yellowgreen ; padding : 2% 4% ; text-align : center ; box-sizing : border-box ; height : 100px ; } .header-grvu1 { float : inline-end ; } .header-grvu2 { float : right ; } /* background-image: linear-gradient(rgba(0, 0, 255, 0.5), rgba(255, 255, 0, 0.5)), url("../../media/examples/lizard.png"); */ .header-grvu2 #search1 { background-image : linear-gradient ( rgba ( 156 , 156 , 163 , 0.5 ), rgba ( 197 , 197 , 194 , 0.575 )), url ( search.png ); background-size : 10% ; background-repeat : no-repeat ; background-position : right ; /* background-color: rgba(163, 162, 162, 0.856); */ ...