I am trying to put Bootstrap search icon in the placeholder of <input>
.
However as it is obvious that I cannot just write <input type="text" placeholder="<i class='bi bi-search'>"
in the placeholder. I checked Stackoverflow and found that for fontawesome we can just simply put
<input type="text" placeholder=" Search" style="font-family:Arial, FontAwesome" />
(For version 4.7+).
However What I want to know is there someway of achieving this with bootstrap also.
I checked the bootstrap-icon CSS file and found out this .bi-search::before { content: "\f52a"; }
.
Edit:- I want to place it in the Placeholder not in the <input>
field
Hope I made the question Clear.