SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Web Enthusiast
    Join Date
    Jul 2000
    Location
    Western Massachusetts, USA
    Posts
    1,383
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    font size specified for a jumpbox

    Trying to get a font size specified for a jumpbox. What I have done doesn't seem to have made a difference from the default font size.

    Code:
     .jump_prog_ {
    font: normal 11px Verdana, Geneva, Arial, Helvetica, sans-serif;
    }
    PHP Code:
     <form name="jump_prog" class="jump_prog_">
    <select name="progjumpbox" OnChange="location.href=jump_prog.progjumpbox.options[selectedIndex].value">
         <option selected>change dates...</option>
         <!-- <option value="/program/program.php">month</option> --> 
    <?
    $sql 
    "select 
         distinct concat(monthname(startdate),' ',year(startdate)) as monthname, 
         concat(date_format(startdate,'%Y%m'),'01') as monthstart, 
         concat(date_format(date_add(startdate, interval 1 month),'%Y%m'),'01') as monthend 
         from 
         program 
         where 
         enddate > now() "

         (
    $category=="all" " " "and ".$category."='Y' ")
         .
    " order by startdate asc";
    $rs $db->query($sql);
        while (
    $row mysql_fetch_array($rs)) {
    ?>
         <option value="/program/program/<? echo($category); ?>/?orderby=<? echo($_GET["orderby"]); ?>&amp;monthview=<? echo($row["monthstart"]); ?>"><? echo($row["monthname"]); ?></a>&nbsp;&nbsp;</option>
    <?
    }
    ?>
    <!-- <option value="/program/program/<? echo($category); ?>/?orderby=&viewall=1">All months</a></option>
    <option value="/program/program/all/?orderby=&viewall=1">All months all categories</a></option> -->
    </select>
    </form>
    What am I missing?
    Paul C.
    ClickBasics
    http://www.clickbasics.com

  2. #2
    SitePoint Enthusiast ada80ro's Avatar
    Join Date
    Apr 2005
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have to apply the class to select element not form element.


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
  •