# Is it possible to put icon inside "search input" element?

**URL:** <https://community.weweb.io/t/is-it-possible-to-put-icon-inside-search-input-element/10434>\
**Category:** Ask us anything\
**Created:** [August 25, 2024, 8:48am UTC](https://community.weweb.io/t/is-it-possible-to-put-icon-inside-search-input-element/10434 "2024-08-25T08:48:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay12](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@Jay12](https://community.weweb.io/u/Jay12)\
**Post date:** [August 25, 2024, 8:48am UTC](https://community.weweb.io/t/is-it-possible-to-put-icon-inside-search-input-element/10434/1 "2024-08-25T08:48:39Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/b/bec5490bff979ef4158bf553bc3027933745fbab.png)  
I want to put the icon to clear the input within search input element like the attached image. Is it doable?

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [August 25, 2024, 9:36am UTC](https://community.weweb.io/t/is-it-possible-to-put-icon-inside-search-input-element/10434/2 "2024-08-25T09:36:38Z")

</div>

I think you could probably do this via leveraging a container + position absolute. I have a search input that lets you put anything in it if you would like to have a look. [https://marketplace.weweb.io/libraries/df32b91d-b9da-42b3-9e59-47f78fbc2579/](https://marketplace.weweb.io/libraries/df32b91d-b9da-42b3-9e59-47f78fbc2579/) See the demo with an explaination 🙂

---

<div class="post-metadata">

**Author:** ![Jay12](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@Jay12](https://community.weweb.io/u/Jay12)\
**Post date:** [August 26, 2024, 6:18am UTC](https://community.weweb.io/t/is-it-possible-to-put-icon-inside-search-input-element/10434/3 "2024-08-26T06:18:49Z")

</div>

Hey I checked your video but I did not see you put an icon inside the search input.

I can try position absolute though!
