select.list1 option.option2
{
background-color: #007700;
}
<select class="list1">
<option value="1">Option 1</option>
<option value="2" class="option2">Option 2</option>
</select>
Related Contents:
- Why does HTML think “chucknorris” is a color?
- Change select box option background color
- Is it possible to have two background colors for a single html element? [duplicate]
- CSS ”background-color” attribute not working on checkbox inside
- problem with and :after with CSS in WebKit
- How to make an element’s background-color a little darker using CSS
- Color of stacked semi-transparent boxes depends on order?
- Options with display:none not hidden in IE
- How to change the text color of first select option
- HTML Multiselect Limit
- What are valid values for the id attribute in HTML?
- Make a div fill the height of the remaining screen space
- Does UL have default margin or padding [duplicate]
- How can I reorder my divs using only CSS?
- Are iframes considered ‘bad practice’? [closed]
- How to avoid joining all text from Nodes when scraping
- Implement an input with a mask
- HTML5 Audio stop function
- When is localStorage cleared?
- How to get the HTML source of a page from a HTML link in Android?
- Ellipsis for overflow text in dropdown boxes
- How can I limit the visible options in an HTML dropdown?
- Responsive CSS Trapezoid Shape
- Is it possible to use text-overflow:ellipsis on multiline text?
- avoid page break inside row of table
- Why is HTML5 input type datetime removed from browsers already supporting it?
- make an html svg object also a clickable link
- ‘position: sticky’ not working when ‘height’ is defined
- Scroll to a specific Element Using html
- Div 100% height works on Firefox but not in IE
- WCF service to accept a post encoded multipart/form-data
- HTML5 include file [duplicate]
- How to change color of disabled html controls in IE8 using css
- CSS Transition – eases in but doesn’t ease out?
- How to convert to px?
- HTML5 Video / End of a Video Poster
- How to auto-resize an image while maintaining aspect ratio
- Position fixed doesn’t work when using -webkit-transform
- Set the select option as blank as default in HTML select element
- Bootstrap – 5 column layout
- What are the CSS properties that get elements out of the normal flow?
- How can you hide the arrow that is displayed by default on the HTML5 element in Chrome?
- How to add the text “ON” and “OFF” to toggle button
- How to move placeholder to top on focus AND while typing?
- Animated GIF in HTML5 canvas
- Why is box-sizing acting different on table vs div?
- Get index of selected option with jQuery
- Chrome, Safari ignoring max-width in table
- Textarea value not getting posted with form
- What is the purpose for HTML’s tbody?