SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2000
    Location
    Norcross, GA
    Posts
    136
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it possible to control the height of <select></select> form elements?

    The default height is (guessing) around 20px -- I'd like to have one display at 15px tall. Can it be done?
    - Mike
    http://www.georgiaoffroad.com

  2. #2
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not too sure.
    but you could try and see if it works.

    I do know that modifiying the font size affects the height of the menus. =)

    [note]
    You can also modify width for input submit/reset buttons and more. just for archiving purposes =)
    [/note]
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  3. #3
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This piece will change the font-size of the elements in your SELECT tag. It's not possible to change the line-height for the OPTION tag directly.

    The reason why you can change the line-height of text in say a P tag is because as far as the bropwser is concerned, the text is all one element that happens to be spread out over several lines.

    Option elements are one per line and each it it's own element.

    <style type="text/css">
    <!--
    select { font-family: verdana; font-size: 8pt; }
    -->
    </style>
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes


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
  •