|  | Posted by Adrienne Boswell on 06/28/07 18:39 
Gazing into my crystal ball I observed Froefel <hansdeschryver@gmail.com> writing in news:1183042357.606730.12700@m36g2000hse.googlegroups.com:
 
 > 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
 >
 
 I am assuming this is in a form, eg:
 <select name="listbox">
 <option value="1">Short</option>
 <option value="2">Supercalifragilisticexpialidocious</option>
 </select>
 
 You could try overflow on it, but, you have to consider the user.  Does
 the user need to see the whole word?
 
 As others have said, a URL would help.
 
 --
 Adrienne Boswell at Home
 Arbpen Web Site Design Services
 http://www.cavalcade-of-coding.info
 Please respond to the group so others can share
  Navigation: [Reply to this message] |