You are here: Prevent listbox from resizing horizontally « HTML « IT news, forums, messages
Prevent listbox from resizing horizontally

Posted by Froefel on 06/28/07 14:52

I'm looking for a way to restrict a listbox from resizing
horizontally.

The listbox sits within a <td> and has a style="width=100%;"

This makes sure that the listbox is always as wide as its (fixed-
width) <td>, nomatter how short the text of the items.
However, when the text of an item is longer than the listbox width,
the listbox is resized horizontally to accommodate the text. I would
like to prevent that from happening, so that either the text gets cut
off, or a horizontal scroll bar appears.

Can this be done with CSS or any other way?

-- Hans

 

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

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