How to change font attributes in dropdown?

From: Date: Mon, 13 Sep 2004 02:46:51 +0000
Subject: How to change font attributes in dropdown?
Groups: php.general 
Request: Send a blank email to php-general+get-196468@lists.php.net to get a copy of this message
I've tried many locations but can't figure out how to change the font attributes for just my dropdown list on my page. The dropdown box populates its data perfectly but I'd like to change the font to Arial Bold 10pt on the items. Here's my code: ?> <div style="position:absolute; top:100px; left:440px;"> <form name=Event method=post action="<? echo $PHP_SELF ?>" enctype=multipart/form-data> <input type=hidden name=UID value=<? echo $UID ?> > <? echo "<SELECT class=dropdown name=Event onchange=\"document.forms['Event'].submit()\">"; echo "<option value=\"\"> Choose Event </option>"; mysql_connect("$DBHost","$DBUser","$DBPass"); $result=mysql("$DBName","SELECT * FROM Category WHERE Category = 'Ordering' ORDER BY Event"); while ($row = mysql_fetch_row($result)) { echo "<option value=\"$row[0]\"> $row[0] </option>"; } echo "</select>"; ?> </FORM> </div> <?

« previous php.general (#196468) next »