How do I resize a background image to height: 100%;? [duplicate]
I am trying to achieve a result like the one in the image, where the background-image has the same height as the container (minus the padding). (The magnifying glass is the image I want to appear inside the <input> element) . but for now it looks like this: I don't know if it might be useful, but here is the <input> style so far: .searchbar { width: 100%; height: 22.5px; padding: 1px 3px; box-sizing: border-box; color: rgb(66, 66, 66); font-family: 'Segoe UI'; background: linear-gradient(white, rgb(175, 232, 255)); border: 1.5px solid rgb(94, 94, 94); border-radius: 4px; outline: none; } .sear
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.