Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    271
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Font size in a form

    Is the a way to change the font size in a form >>


    I have this How would I change the font size for the option Blue

    <OPTION value=1>Blue</OPTION>


    <form action="search/1stpage.php" method="get" name="Form">
    <input type="hidden" name="search" value="searchform">
    <input type="hidden" name="nxtpage" value="1">
    <input type="hidden" name="cpage" value="0">
    <tr>
    <td width="150" height="89" valign="top" class="box2"><div align="left">
    <p align="center"><span class="text"><strong> Color Line:</strong></span>
    <br>

    <SELECT name=VendorID>
    <OPTION value=""
    selected>Any line</OPTION>
    <OPTION value=1>Blue</OPTION>
    <OPTION value=2>Red</OPTION>
    <OPTION value=16>Yellow</OPTION>

    </SELECT>
    </font> <br>

    THXS Steve

  • #2
    Regular Coder
    Join Date
    May 2006
    Location
    Wales
    Posts
    820
    Thanks
    1
    Thanked 82 Times in 79 Posts
    Code:
    <SELECT name=VendorID>
    <OPTION value=""
    selected>Any line</OPTION>
    <OPTION style="font-size:10px;" value=1>Blue</OPTION>
    <OPTION value=2>Red</OPTION>
    <OPTION value=16>Yellow</OPTION>
    </SELECT>
    That will make the size smaller in the drop down list, but once you have selected it, it will go to the size of the <select>. You will need to use javascript to change the size of the <select> once blue is selected.


  •  

    Posting Permissions

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