Wednesday, September 26, 2012

stackoverflow

1 down vote accepted
italic is not apply in chrome and opera. plz check http://www.electrictoolbox.com/style-select-optgroup-options-css/
we can give any design for options.
<option style='font-style: italic; font-weight:bold;' selected="selected" value="#">
   <span>Choose One</span></option>
   <optgroup label="Option group 1">
<option value="TestValue">    TestValue</option>
<option value="TestValue">    TestValue</option>
<option value="TestValue">    TestValue</option>
</optgroup>
</select>
css:
 select option {
        background: none repeat scroll 0 0 #E5E3E3;
        border: 1px dotted #CCCCCC;
        height: 15px;
        line-height: 15px;
        text-indent: 3px;
        text-transform: capitalize;
        z-index: -9999; 
    }
    optgroup { /* Change font style and text alignment */
    font-style:italic;
    text-align:right;
    }
share|edit|delete|flag

Top 100 social media profile creation websites

500px 500px ISO is home to the best photo stories on the web. We feature the unique, crazy, and beautiful stories behind the photos yo...

Famous Blogs