I made a search bar, im trying to have the search button inside the search bar like this:
excuse the 3 versians. What ive done so far, is put the search button inside the bar, by either using negative margin on the search bar or the button, as exampled in the middle and bottom search bar.
In the middle search bar Ive used negative margin to get the button inside the searchbar, and positive margin on the search bar to center the search bar on the screen.
My question is, is there a cleaner way to do this? without messing around with margins, while keeping things centered, while keeping the button inside the bar.