I ran into one weird cross-browser problem. ie I want to highlight some option elements in bold using the CSS class in the "select" form element. All this works fine only in firefox, but not in other browsers like safari, chrome and IE. Below is the code.
<html>
<head>
<title>MAke Heading Bold</title>
<style type="text/css">
.mycss {font-weight:bold;}
</style>
</head>
<body>
<form name="myform">
<select name="myselect">
<option value="one">one</option>
<option value="two" class="mycss">two</option>
<option value="three" >Three </option>
</select>
</form>
</body>
</html>
source
share