Originally posted by Khalid Ali
you will need to set the style for the select tag
You could style the <select> element, however, the original poster implies that they want only specific options to be displayed as italic, and thus you must style the <option> element instead because styling <select> would result in all options becoming styled. All you'd need is:
Code:
<select>
<option value="foo">bar</option>
<option value="foo" class="i">bar</option>
<option value="foo" class="i">bar</option>
<option value="foo">bar</option>
</select>
Along with the following CSS:
Code:
<style type="text/css">
/*<![CDATA[*/
.i { font-style: italic; }
/*]]>*/
</style>
Bookmarks