Forum Moderators: not2easy
I am not sure how to style a form to do the following.
The size of the boxes and fonts of the form
Change the default arrow used by the form when selecting an item. I have an image I would like to use in its place. How do I do that.
Change the submit button to use an image but use css instead of a javascript submit.
Thanks for any help
form html is pretty standard
<form name="search" id="search" method="post" action="#">
<fieldset>
<div id="cruiseline">
<select name="cruiseline">
<option>Cruise Line</option>
<option>Carnival</option>
</select>
</div>
<div id ="month">
<select name="month">
<option>Month</option>
<option>January</option>
<option>February</option>
<option>March</option>
<option>April</option>
<option>May</option>
<option>June</option>
<option>July</option>
<option>August</option>
<option>September</option>
<option>October</option>
<option>November</option>
<option>December</option>
</select>
</div>
<div id="region">
<select name="region">
<option>Region</option>
<option>Europe</option>
<option>Asia</option>
</select>
</div>
</fieldset>
</form>
Tom's Hardware uses a JavaScript <select> for its page navigation on articles, which is relatively pretty. That one doesn't use an actual <select> element as its basis, but there's little reason why you shouldn't code a basic <select> and use JavaScript to replace it once the DOM has loaded. All the bells and whistles without sacrificing the underlying code and the accessibility benefits that may do with it.