Link to home
Start Free TrialLog in
Avatar of spyderx
spyderx

asked on

Customizing Drop Down Menu

How can I customize a simple drop down menu? I would like to customize such things as background color, font size, etc.

To avoid confusion, I'm refering to the following drop/pull down menu:

<form method="POST">
    <select name="menu" size="1">
    <option value="http://www.domain.com">Option 1
    <option value="http://www.domain.com">Option 2
    <option value="http://www.domain.com">Option 3
    </select>
</form>

I've tried using:

style="color: #000000; font-size: 15px;"

However, it doesn't seem to work.

If at all possible, I would like to keep the customization elements within the form code, without using internal or external CSS (if this makes any sense).

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Batalf
Batalf
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DreamMaster
DreamMaster

Just a side note here...

You should close your option tags...

</option>

Regards,
Max.
Avatar of spyderx

ASKER

I see, so I would have to use CSS to format the form elements.

Is there a simpler, more compact way I can customize it?

Thanks.
Using stylesheets is the most compact you will get spyderx...

Regards,
Max.