And insert a • in front of the text in a larger font size (But same line height). This will give you a circle, but not a square.
-----Original Message----- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: 19 October 2005 20:13 To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: Re: Adding images to <option> items in a <select> drop down list Just thought of this... one thing you could do is set the text color of each option. That *does* work. Might serve your purpose alright. You can actually set the color style attribute or background-color, both work. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Wed, October 19, 2005 3:10 pm, Dave Newton said: > Faisal Mahmoud wrote: > >>I am creating a drop down list using the HTML <select> and <option> >>tags. The items in the list will be color names (ex. red, green, blue, >>etc..). I would like a small square image to be next to each color >>name text in the list. How would I go about this in my jsp file with >>my struts tags? >> >> > By rewriting the browser. > > I've never seen a browser support anything other than text inside a > select box w/o using a plugin of some sort (flash, applet, etc.) > > Dave > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]