Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Fixed width <select>

Reply
Thread Tools

Fixed width <select>

 
 
jayman jayman is offline
Junior Member
Join Date: Jul 2008
Posts: 2
 
      07-25-2008
I am trying to create a fixed-width drop-down field item (<select> tag). In case, the string length of option values exceeds the width of <select>, it should display the option list by expanding option area while clicking on drop-down.

The following code works fine in Mozila-firefox (v2.0) but does not work in IE v7.0 (It's clipping the string after specified width)

<select style="width:145px;" name="abcd" id="abcd">
<option value="" selected="true">Select one</option>
<option id="one" value="one">Dummy Data - Dummy Data - Dummy Data 1</option>
<option id="two" value="two">Dummy Data - Dummy Data - Dummy Data 2</option>
</select>


Any help would be appreciated.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Fixed width table with a 100% width image in it is assuming theimages intrinsic size, although it does shrink the image satya.komatineni@gmail.com HTML 1 12-29-2007 08:32 PM
CSS question: Using height/width at 100% with fixed-width borders/margin/padding cera HTML 1 08-18-2007 02:59 AM
fixed-width column and variable-width columns mixed ssk HTML 5 10-30-2006 07:50 AM
Free Fixed-Width/Fixed-Pitch fonts? johnp HTML 4 05-23-2005 06:14 AM
Fixed layout width based on browser window width msswasstastic@aol.com HTML 11 01-28-2005 07:36 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57