Solved

Internet Explorer List/Menu CSS Width Issue.

Posted on 2006-06-26
3
2,067 Views
Last Modified: 2009-07-30
Hi all.

I'm currently working on the following web page: http://www.clubsail.com/form.php

The offending code is the following:

<select name="pracqual" id="pracqual" style="font-size: 11px; margin-left: 1px; vertical-align: middle; width: 80px; margin-right: 1px; height: 18px; text-align: left">
        <option value="999999" selected="selected">Select</option>
        <option value="None">None</option>
        <option value="Powerboat Level 1" >Powerboat Level 1</option>
        <option value="Powerboat Level 2">Powerboat Level 2</option>
        <option value="Intermediate Powerboat">Intermediate Powerboat</option>
        <option value="Advanced Powerboat">Advanced Powerboat</option>
        <option value="Safetyboat">Safetyboat</option>
        <option value="ICC Assessment">ICC Assessment</option>
</select>

Basically if you view this list item (or any on the page for that matter in FireFox) the actual elements within the list stretch accordingly. View the same page in IE however and the list elements are all cut off at 80px. I've tried adding a style tag to the option box and setting it to 190px on the off chance it would work, and ironically it worked fine in Fire Fox but not in IE.

So my question is this... is there a workaround to this issue? Questions on a post card.
0
Comment
Question by:craigweb2k
3 Comments
 
LVL 30

Accepted Solution

by:
GrandSchtroumpf earned 300 total points
ID: 16982768
That's how IE handles select elements.  There is nothing you can do about it.
Your best option is not to specify any explicit width on the select elements.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I spend far too much time on the web keeping up with the news: politics, the environment, computer stuff, the Experts Exchange. It's never-ending. But many of the most informative web pages are overwhelmed with noise: scrolling banners, flashing tex…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question