SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Set width on select menu doesnt expand IE/PC

    Basic pulldown/select menu with a set width expands to reveal the full text on all browsers Mac and PC - except for IE on a PC. It even expands on IE on Mac. Anyone know how to make it expand and not crop the text on IE/PC ?

    Here's a simple example - 4th pulldown (far right) has a set width.
    On all browsers except IE on PC - the menu expands when you activate.
    Uses code = code = <select name=u_month style="width:60px">

    http://www.codeave.com/css/dropdown-format.htm


    Here is my page in progress using code = <select name="menu" style="width:17em">
    http://www.goodyellow.com/techcomm/w...s/1-newnav.asp

    Have also tried this:
    <select name="menu" style="font-size:10px;font-family:Arial;width:165px;overflow:auto">

    http://www.goodyellow.com/techcomm/w.../1-newnav3.asp

    Any tips greatly appreciated, trying to keep the code simple, and avoid using slide-out layer menus. THANKS !

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,376
    Mentioned
    180 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    In IE if you set the width of the select then that is the width the options will be also and theres nothing you can do about it except not to set a width as suggested by all4nerds above


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •