You are here: Re: Tabs in a Select list? « HTML « IT news, forums, messages
Re: Tabs in a Select list?

Posted by Jim Moe on 11/08/03 11:45

Martin wrote:
> Is there any way I can get a drop-down list in a Select tag to display
> it's contents in two columns? Say, for example, I wanted to display a
> list of people's names with the last name aligned to the left side and
> the first name aligned to the center.
>
select, option {
white-space: pre;
font-family: monospace;
}
The whitespace in the <select> is still collapsed but at least the
<option>s align like you would like. The backend processor decides how
many spaces to put in the list to get it to look columnar.
The font has to be monospace, else the spacing does not work like you
expect.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

 

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

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