Home All Groups Group Topic Archive Search About
Author
14 Apr 2005 3:03 AM
Roshawn Dawson
Hi,

This may be the wrong place to post this, but how do you place an icon
inside a textbox?  Many of today's toolbars seem to have this feature.
Moreover, the icon acts as a menu.  Some even have another icon that
acts as a close button (it actually clears the textbox).

Any ideas on how to do this?

Thanks,
Roshawn

Author
14 Apr 2005 10:04 PM
Peter Blum
Remember that everything you do has to work in HTML. The <input type='text'>
tag is used for textboxes and it doesn't support images inside the graphics.
More than likely, the image isn't in the <input type='text'> tag, its right
after it. The programmer has used style sheets to hide the border of the
textbox (making it match the background.) Then they enclosed both textbox
and image in an <span> tag with its own border. Now it looks like a textbox
with an image inside.

--- Peter Blum
www.PeterBlum.com
Email: PLB***@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

Show quoteHide quote
"Roshawn Dawson" <udr***@bellsouth.net> wrote in message
news:uSH$O6JQFHA.3928@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> This may be the wrong place to post this, but how do you place an icon
> inside a textbox?  Many of today's toolbars seem to have this feature.
> Moreover, the icon acts as a menu.  Some even have another icon that acts
> as a close button (it actually clears the textbox).
>
> Any ideas on how to do this?
>
> Thanks,
> Roshawn