Style a Select Box Using Only CSS. Inspired by: http://bavotasan.com/2011/style-select-box-using-only-css/
The dropdown in IE seems to inherit the white font text causing the options to be invisible (against the white background.)
Hello, very good examples, it must be useful for me, thank you.
But you have a "Unrecognised input" in the final of code of CSS.
@VictorDiCampos: Thanks! I think I fixed the error.
Ugly, Ugly, Ugly, Ugly, Ugly, Ugly, Ugly, Ugly and Ugly.
@wilder_ Uh... thanks??? Please keep in mind I wasn't going for style points here. This was for a site feature I needed to code 4 years ago. Feel free to fork it and make it pretty.
@ericrasch how can we change the light-blue background to a different color when hovering over the options?
@ericrasch if the option text is long, then it overlaps the background image, forked pen
Hi @ericrasch, clever solution. Just thinking about accessibility, how do you handle the blue outline on focus?
By default the the top, left and bottom will be blue but the right-hand outline will be hidden.
Need to know how to enable it? Go here.