How can i control the location of html select option.

Discussion in 'HTML & Website Design' started by cesarcesar, May 18, 2007.

  1. #1
    I have a page where the <select> is very screen right. it has little room to show the full name in the <option> so i do like "S - Summary". You only end up seen the S. When the dropdown happens, my clients wants to see the whole name. This works in FF, but not IE. Can i via CSS control the location of the options. Say move them left 50px. Thanks.
     
    cesarcesar, May 18, 2007 IP
  2. diarmuid

    diarmuid Peon

    Messages:
    285
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can do that quite easily, however it might be easier to see the actual website or the code you have been using...
    However, in your select option, you can assign it a class, as in
    <select class="css">
    Code (markup):
    And then all you have to do is edit you css to include the class which say has a 50px left margin, or is just 50px to the left of everything else...

    Hope that helps
    Diarmuid
     
    diarmuid, May 19, 2007 IP