Results 1 to 2 of 2

Thread: menu/list width question

  1. #1
    Join Date
    Jan 2006
    Posts
    52

    menu/list width question

    Hello,

    I have been asked by one of my clients to make the width of a dynamic dropdown list a certain width. I thought there would be an option like on a text field where you could enter the amount of character width you would like but there is not.

    Is there a way i can make this a certain width? many thanks for any advice provided. Thank You!!

    Andy MacDonald
    Last edited by Rincewind; 19 May 2006 at 07:01 AM. Reason: Please read forum rules regarding signatures.

  2. #2
    Join Date
    Mar 2004
    Location
    China
    Posts
    3,315
    The size of the box depends on the lenght of the words in the box. If you only use 8 letter words, then the box will only be 8 letters long. You could make a minimum width by adding black non-breaking spaces to the end of one of the items so foarcing the width out. But it wouldn't realy be right to make the box smaller than the text it contains. The text box has the character size included because it is usually empty by default.

    You could also set the font size using css. If you want a smaller box, use a smaller font size.

Similar Threads

  1. Pull-down menu width in Netscape
    By Kajtek in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 01 Apr 2006, 09:49 PM

Posting Permissions

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