Hello Jeff,

You can use the style attribute in <option> like you have done in the <div>
So this:

echo "<option value=\"$row[0]\"> $row[0] </option>";

Could look like this:

echo "<option value=\"$row[0]\" style=\"font-family:arial;
font-size:10pt; font-weight:bold;\"> $row[0] </option>";



-- 
Franklin van de Meent
[EMAIL PROTECTED]


On Sun, 12 Sep 2004 19:46:51 -0700, Jeff Swanberg
<[EMAIL PROTECTED]> wrote:
> 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>
> <?
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to