On 28 Mar 2005 at 11:16, Sarah Peeke (XERT) wrote:

> Hi all
> 
> I would like to be able to give a different style to *part* of an option 
> field within a form.
> I cannot seem to find any reference to whether the following is possible:
> 
> <form>
> <select>
> <option value="something">Name <span>(with photo)</span></option>
> <option value="something">Name <span>(with photo)</span></option>
> <option value="something">Name <span>(with photo)</span></option>
> </select>
> </form>
> 

you would need an own specification

<!ELEMENT option (#PCDATA | span)*> 

then this would work. But not with the official things.

Instead you may use some unicode-characters instead of photos. The 
version 2.1 is shown in all browsers, which are not too old, higher 
versions may be not work.

Best Regards
Juergen Auer
http://www.sql-und-xml.de/
******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to