SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Dec 2009
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    fixed width select box and option text

    I want to keep fixed width select box and option text.

    I want to do this because my select boxes option texts are big.


    Can you please suggest a workaround ?

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

    You can set the width of the select quite easily by just using select {width:200px} but most browsers don't allow a width on the option (apart form Firefox).

    select{width:200px}
    option:{width:170px}

    It's one of those elements that you have little control over.


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
  •