This can be done by implementing an inset box shadow.
eg:
select.decorated option:hover {
box-shadow: 0 0 10px 100px #1882A8 inset;
}
Here, .decorated
is a class assigned to the select box.
Hope you got the point.
More Related Contents:
- How to style the option of an html “select” element?
- Drop-down menu that opens up/upward with pure css
- How to make a pure css based dropdown menu?
- Pure CSS multi-level drop-down menu
- Word wrap options in a select list
- How to remove the default arrow icon from a dropdown list (select element)?
- How to hide drop down arrow in IE8 & IE9?
- How to change font-family of drop down’s list item?
- How can change width of dropdown list?
- How to get horizontal scroll bar in select box in IE?
- How to add images in select list?
- Using external images for CSS custom cursors
- CSS3’s border-radius property and border-collapse:collapse don’t mix. How can I use border-radius to create a collapsed table with rounded corners?
- What is use of ‘initial’ value in CSS?
- Media Queries for Different zoom Levels of Browser
- HTML5 input type range show range value
- Jenkins – HTML Publisher Plugin – No CSS is displayed when report is viewed in Jenkins Server
- Creating a CSS3 box-shadow on all sides but one
- Draw triangle in corner of div
- How to center content in a Bootstrap column?
- Why is a trailing punctuation mark rendered at the start with direction:rtl?
- How to prevent line break at hyphens in all browsers
- CSS property as SASS mixin value [duplicate]
- Preserve line breaks in textarea
- extra space when centering elements using flexbox
- @Media print css
- How to get rid of x and up/down arrow elements of a input date?
- HTML CSS Invisible Button
- CSS After Element to insert mailto link?
- Which browsers support data URIs and since which version?