Skip to main content

Posts

Showing posts from September, 2012

stackoverflow

1down voteaccepted 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.
<optionstyle='font-style: italic;font-weight:bold;'selected="selected"value="#"><span>Choose One</span></option><optgrouplabel="Option group 1"><optionvalue="TestValue">    TestValue</option><optionvalue="TestValue">    TestValue</option><optionvalue="TestValue">    TestValue</option></optgroup></select> css:
select option {         background: none repeat scroll 00#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