CSS - Border Radius for the drop down box when using the SELECT tag? Not the SELECT input ittself, the actual drop down box?
You will not be able to achieve this SELECT DROPDOWN style, with standard HTML form elements, you would have to 'substitute' the dropdown / select with DIV non form elements, then update the selected value to either a hidden form element or a hidden select dropdown.
If you got it somewhat that way you wanted, it would not be cross-browser compatible.
An example of a jQuery substitute is here: https://stackoverflow.com/a/8450718/158014
How to remove border of drop down list : CSS
The most you can get is:
select#xyz {
border:0px;
outline:0px;
}
You cannot style it completely, but you can try something like
select#xyz {
-webkit-appearance: button;
-webkit-border-radius: 2px;
-webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
-webkit-padding-end: 20px;
-webkit-padding-start: 2px;
-webkit-user-select: none;
background-image: url(../images/select-arrow.png),
-webkit-linear-gradient(#FAFAFA, #F4F4F4 40%, #E5E5E5);
background-position: center right;
background-repeat: no-repeat;
border: 1px solid #AAA;
color: #555;
font-size: inherit;
margin: 0;
overflow: hidden;
padding-top: 2px;
padding-bottom: 2px;
text-overflow: ellipsis;
white-space: nowrap;
}
Rounded corner select drop down
You get very little control on the style of the dropdown of a native select
control, and you certainly can't add rounded borders to it.
To achieve what you need you would have to use a third party dropdown plugin which replaces the select
and its option
elements with plain HTML, such as Select2.
Related Topics
Excluding an Element from Nth-Child Pattern
Webkit-Transform Alternative for Firefox
When and How Do Browsers Render <Style> Tag in <Body>
CSS Print Style Sheets - Examples
CSS Doesn't Work on Https Pages in Chrome and Ie
8-Digit Hex Is Not a Background-Color Value
CSS + Firefox: Hiding Scrollbar on Iframe with Scrolling=Yes
Bootstrap 3 Column Wraps in Portrait View Only
Differencebetween :Where() and :Is()
Use Images in CSS Files with Reactjs
Pseudo Element Not Aligning at Top Left Corner
Scale Element in X and Y by the Same Amount of Pixels
Flow Multi-Column Elements Left-Right Before Top-Down
How Does Internet Explorer 8 Support the CSS Outline Attribute
Is There a Specific Order for CSS Properties
Missing Font-Awesome.Less Variables in My .Less File After Importing