I have a responsive input button, I want to add a background icon which should be always 10px margin to "Search" text?
.button {
background-image: url("https://via.placeholder.com/100.svg");
background-position: 45% center;
background-repeat: no-repeat;
}
<input type="submit" value="Search" class="button">
If I add CSS like this, icon placement is changing based on screen width.
But I want the gap between icon and Search text should be only 10px in any resolution.
Thanks in advance!