You are here: Re: div in <option>? « HTML « IT news, forums, messages
Re: div in <option>?

Posted by Steve Pugh on 12/13/06 13:04

gehegeradeaus@gmail.com wrote:
>
> how can I get the following result without using an image :
> http://cmdstud.khlim.be/~bbrughmans/select.png ?

Making the square is easy, for example:
<option>&#9633; Markten</option>

Colouring it red without also colouring the text? Not possible.

Unless you build your own form control in Flash or Java or something,
but unless you are very good it will almost certainly be less usable
and less accessible than the standard one.

> I don't its possible to put a <div> into the <option> tag?

You can't put any markup inside an option element. Text only.

Steve

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация