You are here: SELECT OPTION and width « HTML « IT news, forums, messages
SELECT OPTION and width

Posted by msaladin on 08/29/07 12:54

Hi all,

I'd like to create a very small menu (when collapsed), but when you
click on it, the OPTION entries should have a wide enough size to show
everything. Actually, it should look like this:

--------- ------- --------------------------
Textbox - - ... - - Another textbox -
--------- ------- --------------------------
- Option 1 Should be longer than -
- Option 2 Should be longer .... -
----------------------------------

I can do this in firefox when I set the CSS width-attribute for the
SELECT tag, but not for the OPTION tag. Firefox correctly creates a
small SELECT-BOX, and when you click on it, you see the long OPTION
entries in the expanded field. IEXPLORER does recognize the width-
attribute for the SELECT box, but then inherits the width to all the
OPTION tags below, therefore the OPTIONS are truncated. The above
SELECT box should just help the users to enter something in the
textfield (e.g. when the user selects an item from the SELECT box, the
value is inserted in the textfield on the left of the SELECT box).

Is there any way to do this, without hacking with Javascript on
onMouseDown and onMouseUp etc... I don't want to try to reprogram the
whole SELECT mechanism in Javascript, but it would be great if this
was possible.

Thanks for your help

 

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

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