SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Hybrid View
-
Jul 1, 2006, 12:48 #1
- Join Date
- Jul 2000
- Location
- Western Massachusetts, USA
- Posts
- 1,389
- 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"]); ?>&monthview=<? echo($row["monthstart"]); ?>"><? echo($row["monthname"]); ?></a> </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>
-
Jul 1, 2006, 15:29 #2
You have to apply the class to select element not form element.
Bookmarks