You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Nick Pratt <nb...@gmail.com> on 2013/02/07 00:27:30 UTC

select2

Has anyone got a working example of how to set custom css classes on the
selected choices in a tag/multi-select component using Select2 ?

N

Re: select2

Posted by Gabriel Landon <gl...@piti.pf>.
I'm using select on one of my project.

You can override the CSS. You might have to use the "!important" syntax as
the default select2.css file might be loaded after your own CSS file.

Here's an example of my own CSS :

.select2-container .select2-choice {
	background: none !important;
	border-radius : 0 !important;
	height: 19px !important;
	border: 1px solid #676767 !important;
	line-height: 19px !important;
	padding: 0 0 0 5px !important;
	text-decoration: none !important;
}

.select2-drop {
	border-top : 1px solid #aaaaaa !important;
	padding-top: 2px !important;
	font-size: 11px;
}

Hope this help.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/select2-tp4656140p4656171.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org