Hello there
Is it possible to style the main box area of the control with CSS? (i.e. the main area where the selected value is shown, rather than the options).
I am trying to remove the thin grey border, which is actually provided by the following section of select2.css:
.select2-container–default .select2-selection–single {
background-color: #fff;
border: 1px solid #aaa;
border-radius: 4px;
I could go in and change this style in select2.css, however I don’t want this effect on every select2 control, nor do I want to start “hacking” if I can really avoid it. I could probably also dynamically add some inline style using JQuery to override the CSS, however I would like something simpler and more elegant if possible.
Any help greatly appreciated.
Regards
Geoff Olding