I would like to replicate Google's front-end for practice purposes. I am struggling with including the 'search icon' in the Google search bar.
On other articles, I read about the background-image property, which I have included. However, my image is quite big in pixels. I have included an addition '5px' to emphasize that the icon should be smaller. However, I can't see the icon when I do this.
Could someone explain how I would go about doing this?
input[type=text] { background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/7/7e/Vector_search_icon.svg/1200px-Vector_search_icon.svg.png) 5px; outline: none; width: 40%; padding: 8px 25px; border: 1px solid #DDD; border-radius: 25px; margin: 20px; } <div> <ul class="nav justify-content-end"> <li class="nav-item"> <a class="nav-link" href="image.html">Image Search</a> </li> <li class="nav-item"> <a class="nav-link" href="advanced.html">Advanced Search</a> </li> </ul> </div> <container> <div class="image-box"> <center> <img alt="Google" height="92" src="https://assets.stickpng.com/images/580b57fcd9996e24bc43c51f.png"> </center> </div> <div> <center> <form action="https://google.com/search"> <input type="text" name="q"><br> <input type="submit" value="Google Search"> <input type="submit" value="I'm Feeling Lucky"> </form> </center> </div> </container> Thanks in advance!