Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML HTML Basics

Who knows how...

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

Who knows how...

Postby leo » Thu Mar 18, 2004 10:13 am

Is it possible?... If yes, how can I do it?...
I want to set a specific font (for example, Courier)
for the content of a selection menu form
(SELECTION MENU TEXT... below).

<select name="menuForm">
<option value="Choise1">SELECTION MENU TEXT 1</option>
<option value="Choise2">SELECTION MENU TEXT 2</option>
<option value="Choise3">SELECTION MENU TEXT 3</option>
</select>

:shock:

Thanks,

Leo
leo
New php-forum User
New php-forum User
 
Posts: 12
Joined: Thu Mar 11, 2004 7:35 pm

Postby swirlee » Thu Mar 18, 2004 11:15 am

You'll want to use CSS.

Code: Select all
<html>
<head>
<style type="text/css" media="screen">
   select.mystyle {
      color: green;
      font-family: "Courier New", Courier, monospace;
      font-size: larger;
   }
</style>
</head>
<body>

<select name="menuForm" class="mystyle">
<option value="Choise1">SELECTION MENU TEXT 1</option>
<option value="Choise2">SELECTION MENU TEXT 2</option>
<option value="Choise3">SELECTION MENU TEXT 3</option>
</select>

</body>
</html>


Now that's one ugly drop-down.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Thanks!

Postby leo » Fri Mar 19, 2004 6:46 am

Thank you, Swirlee!

:-?

Leo
leo
New php-forum User
New php-forum User
 
Posts: 12
Joined: Thu Mar 11, 2004 7:35 pm


Return to HTML Basics

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.