Results 1 to 2 of 2

Thread: drop down widths

  1. #1
    Join Date
    Dec 2007
    Posts
    17
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default drop down widths

    Hey guys, is there a way of adjusting each drop down's width? Some of my dropdowns have long titles, but the other dropdowns that have short titles have so much unecessary space.

    So my question is where can I adjust my code so that each dropdown goes as wide as the "widest" text?

    I tried setting the width to "auto" but that didn't work.

    Thanks,
    Joe

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    you could make each li a separate class like class short medium and long and choose which ones to be which short width:33px, medium width:66px, large width:100px,. Then look at each li and set them (short medium large) based on how long the text is. Assuming you used li's for your menu that's what most are though i just assumed you did.

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
  •