473,382 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

fixed width <select> box Internet Explorer Problem

I have a form with lots of select boxes with fixed widths in order to fit in with the design. The problem I have is that some of the values in the options are much wider than the select box so the text in the options is cut off at the width of the select box. In firefox etc the options just expand to the width of the values but not in IE, so if there is a long bit of text in the option, much of it is cut off.

How can I make the options appear properly in IE?

thnaks in advaced!
May 22 '08 #1
5 26302
Death Slaught
1,137 1GB
That's just something that FF does and IE doesn't. You could see what this piece of could would do to your select box.

Expand|Select|Wrap|Line Numbers
  1. select {
  2.   overflow:auto;
  3. }
Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
May 22 '08 #2
i tried wht you hv give. but doesnt solve my problem..the scene is the options in select box works properly in FF but does not expand in IE


here is the code please check in the IE
Expand|Select|Wrap|Line Numbers
  1. <select style="width: 70px; overflow:auto;" name="test">
  2. <option value="1">111111111111111111
  3. <option value="2">2222222222
  4. <option value="3">3333333333333
  5. <option value="4">444
  6. </select>
please help!. thanks in advance!
May 26 '08 #3
Death Slaught
1,137 1GB
Well for one you're not ending your options properly.

Expand|Select|Wrap|Line Numbers
  1. <select>
  2.   <option>First Option</option>
  3.   <option>Second Option</option>
  4. </select>
See if ending your tags fixes the problem.

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
May 27 '08 #4
Well for one you're not ending your options properly.

Expand|Select|Wrap|Line Numbers
  1. <select>
  2.   <option>First Option</option>
  3.   <option>Second Option</option>
  4. </select>
See if ending your tags fixes the problem.

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
as you suggested i tried but its not working!
give me another solutions please
thanks!
Jun 4 '08 #5
Is that the text get truncated under panel in IE because panel is not expanding? You can create your own <select> element using YUI Library to solve width problem.

There are couple of other solutions are also available like expanding the select on mouseover. That is discussed also.
See if that help!
Jul 1 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: gekoblu | last post by:
Hi!, I want to fix via javascript the combo width to a fix value. I'd like to implement a kind of ALT / TITLE function to show the entire option when the text is longer than the combo width......
2
by: Joachim Bauer | last post by:
I'm using the code below to display a menu that opens when the mouse goes over the main menu item (try it in your browser to understand the behaviour). It uses "position:absolute" and a switch...
7
by: | last post by:
I can't get IE 6 to read the values in my <SELECT..> data entry fields. Netscape 7 and Opera see them, and IE will pass the values to the database, but the javascript validation script gets a null...
4
by: Glen K | last post by:
The following works in Firefox buy not in Internet Explorer: <select> <option> option1 </option> <option style="font-style: bold"> option2 </option> </select> Are there any workarounds to...
6
by: joseph.lindley | last post by:
Forgive me for I am a bit of a web-dev novice - but I'm not doing too bad. I'm currently working with a bit of javascript to dynamically add <option>s into a select box. My code currently works...
3
by: i_dvlp | last post by:
I'm trying to replicate a fancy drop-down control (MS-egads!) with form <select><option> It doesn't look like you can specity width as an attribute or define width with CSS. It looks like my...
7
by: lambertb | last post by:
Hi, is this possible to achieve this, and how? http://img217.imageshack.us/img217/779/derrrvw2.png thanks!
4
by: Man-wai Chang | last post by:
-- iTech Consulting Co., Ltd. Expert of ePOS solutions Website: http://www.itech.com.hk (IE only) Tel: (852)2325 3883 Fax: (852)2325 8288
1
by: volynetsv | last post by:
Hello. I have a small problem, here's code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.