You are here: Re: Change number of options shown in drop down list « HTML « IT news, forums, messages
Re: Change number of options shown in drop down list

Posted by Benjamin Niemann on 06/25/06 12:16

gjoneshtfc@volcanomail.com wrote:

> I have a drop down menu on my page that contains over 40 options. When
> expanded the list shows 30 options and stretches to the top of the
> page. Is there any way to limit the number of options shown at one time
> when the list is expanded? I have tried <select size=10> but this
> changes the drop list to a scrolling list.

How a SELECT control is displayed is browser dependend. Some browsers use
the corresponding control as it is supplied by the operating system. The
possibilities to modify such controls are very limited and vary from
browser to browser.

If the options can be structured into smaller groups, you could use OPTGROUP
to markup the option list. Some browsers then create dropdown menus with
submenus for each OPTGROUP (but Konquerer for example still creates a
single long list...).

Perhaps a completely different approach may the better, but you have to
supply a URL to your page, before more could be said.

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/

 

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

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