Created
October 19, 2021 13:44
-
-
Save sonichandni/5f8e6e64ce98dcd030e0d5b23df0058e to your computer and use it in GitHub Desktop.
display image inside input box at the end
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.icon { | |
position: absolute; | |
right: 12px; | |
top: 50%; | |
transform: translateY(-50%); | |
} | |
</style> | |
<div class="form-group" style="position: relative"> | |
<input type="text" class="form-control" id="name" placeholder="Enter your name"> | |
<div class="icon"> | |
<img height="20px" src="images/nextarrow.svg" alt="next-arrow"> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment