Home › Forums › CSS › How to style form <select> tags completely? › Re: How to style form
June 20, 2009 at 10:21 am
#59399
Frodo64
Member
"apostrophe" wrote:
It can’t be done with css alone. Check out this jQuery plugin http://www.scottdarby.com/2009/05/jquery-plugin-stylish-select-unobstrusive-select-box-replacement/
It is wokring fine on Firefox, but it’s buggy in IE6, IE7. Maybe I’m doing something wrong?
[attachment=0]wrong.jpg[/attachment]
The css of this select:
Code:
ul.newList {margin:0; padding:0; list-style:none; color:#666; width:160px; background:#feffff; position:absolute; display:none; border:1px solid #666; top:22px; left:0; overflow:auto; z-index:9999;}
.newListSelected {width:150px; color:#666; height:18px; padding:4px 0 0 12px; float:left; background:url(images/search-select-bg.gif) no-repeat; outline:none;}
.newListSelected span {width:162px; display:block;}
ul.newList li {padding:3px 12px;}
.selectedTxt {width:127px; overflow:hidden; height:16px; padding:0 23px 0 0;}
.hiLite {background:#23788B!important; color:#feffff!important;}
.newListHover {background:#ccc!important; color:#000!important; cursor:default;}
.newListSelHover {cursor:default;}
.newListOptionTitle {font-weight:bold;}
.newListOptionTitle ul {margin:3px 0 0;}
.newListOptionTitle li {font-weight:normal; border-left:1px solid #666;}
.newListSelected {width:150px; color:#666; height:18px; padding:4px 0 0 12px; float:left; background:url(images/search-select-bg.gif) no-repeat; outline:none;}
.newListSelected span {width:162px; display:block;}
ul.newList li {padding:3px 12px;}
.selectedTxt {width:127px; overflow:hidden; height:16px; padding:0 23px 0 0;}
.hiLite {background:#23788B!important; color:#feffff!important;}
.newListHover {background:#ccc!important; color:#000!important; cursor:default;}
.newListSelHover {cursor:default;}
.newListOptionTitle {font-weight:bold;}
.newListOptionTitle ul {margin:3px 0 0;}
.newListOptionTitle li {font-weight:normal; border-left:1px solid #666;}
The link: LINK DELETED