Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

displaying image in text box

Tags:

html

i have a textbox for search. how to display image in textbox..eg: searchbox available on most of the websites with search image inside it

like image 844
Ketaki Avatar asked Mar 31 '11 07:03

Ketaki


1 Answers

You can use css to do this

Create a style like below in your css

.tbl1 {
    background:#FFFFFF url(images/search.png) no-repeat 4px 4px;
    padding:4px 4px 4px 22px;
    height:18px;
}

and use that class to the text box

<input type="text" name="smaple" class="tbl1">
like image 127
Vijay Avatar answered Oct 10 '22 23:10

Vijay