html - CSS select element when other element is focused -
html - CSS select element when other element is focused -
i have select box , styled android spinner. see fiddle.
the problem can not figure out how create triangle bluish when select focused. can help?
the problem trying travel around dom wrong way. want nephew impact uncle, , can't css alone.
however, if create div.triangle sibling of select, css work. need alter positioning of .triangle css
http://jsfiddle.net/wildandjam/6dkn6/
<div class="datainputcomboboxwrap"> <div class="datainputcomboboxcontainer"> <select class="datainputcombobox" > <option>option 1</option> <option>option 2</option> <option>option 3</option> <option>option 4</option> </select> <div class="triangle"> </div> </div> and create triangle viewable within container:
.triangle { left: -50px; } html css select
Comments
Post a Comment