SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2006
    0 Post(s)
    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">

    Here is my page in progress using code = <select name="menu" style="width:17em">

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

    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
    Hampshire UK
    183 Post(s)
    6 Thread(s)

    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


Posting Permissions

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