SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: <select>

  1. #1
    SitePoint Guru
    Join Date
    Apr 2001
    Location
    BC, Canada
    Posts
    630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    <select>

    can css make a select box a certain length?..

    thanx

  2. #2
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <select size="4" style="width:150px;">
    <option>Option 1
    <option>Option 2
    <option>Option 3
    </select>

    Doesn't work in Netscape though.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  3. #3
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    a workaround, though not effective is setting the font size.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  4. #4
    pg for mild peril cow's Avatar
    Join Date
    Mar 2000
    Location
    nevada, usa
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i couldn't get the select box to change at all in netscape...even by changing the font-size.
    "There's no justice like angry mob justice!" --Seymour Skinner

  5. #5
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by creole
    Doesn't work in Netscape though.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  6. #6
    pg for mild peril cow's Avatar
    Join Date
    Mar 2000
    Location
    nevada, usa
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i was actually referring to lynlimz font size suggestion...
    "There's no justice like angry mob justice!" --Seymour Skinner

  7. #7
    SitePoint Guru
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by cow
    i was actually referring to lynlimz font size suggestion...
    Did you do it with the <font> tag or CSS?

    CSS works.

  8. #8
    pg for mild peril cow's Avatar
    Join Date
    Mar 2000
    Location
    nevada, usa
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by duckie


    Did you do it with the <font> tag or CSS?

    CSS works.
    both.

    css doesn't work in netscape 4.7, but the <font> tag method does.

    the <font> tag method doesn't work in ie, but the css does.

    here is the code is used:

    Code:
    <html>
    <head>
    <style>
    .abc {width: 100%; font-size: 40px; font-family: Arial;}
    </style>
    </head>
    
    <body>
    
    <table border="0" width="300" height="300" cellspacing="0" cellpadding="10">
    <tr><td align="center" valign="middle">
    <form>
    
    	<select style="font-size: 30px; font-family: serif;">
    		<option>23541423
    		<option>42345235
    	</select>
    
    <br><br>
    
    	<select class="abc">
    		<option>23541423
    		<option>42345235
    	</select>
    
    <br><br>
    
    	<font size="6">
    	<select>
    		<option>23541423
    		<option>42345235
    	</select>
    	</font>
    
    </form>
    </td></tr>
    </table>
    
    </body>
    </html>
    and the results:



    "There's no justice like angry mob justice!" --Seymour Skinner


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
  •