Select arrow style change
Have you tried something like this:
.styled-select select {
-moz-appearance:none; /* Firefox */
-webkit-appearance:none; /* Safari and Chrome */
appearance:none;
}
Haven't tested, but should work.
EDIT: It looks like Firefox doesn't support this feature up until version 35 (read more here)
There is a workaround here, take a look at jsfiddle
on that post.
Change HTML Select arrow background color
Some linear-gradient
background-image
hacks:
select {
/* styling */
background-color: black;
color: white;
line-height: 1.5em;
padding: 0.5em 3.5em 0.5em 1em;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-appearance: none;
-moz-appearance: none;
}
select.classic {
background-image: linear-gradient(45deg, transparent 50%, white 50%), linear-gradient(135deg, white 50%, transparent 50%), linear-gradient(to right, black, black);
background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px), 100% 0;
background-size: 5px 5px, 5px 5px, 2.5em 2.5em;
background-repeat: no-repeat;
}
<select class="classic">
<option>Option</option>
<option>Option</option>
<option>Option</option>
</select>
How to change colour of select dropdown arrow?
select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none; /* Remove default arrow */
background-image: url(...); /* Add custom arrow */
}
How to change down-arrow on select tag
You can try this with pure css , first you need to remove the default behavior of the select
tag with appearance:none
property.
browser specified
appearance:none;
-webkit-appearance:none;
/* chrome and safari */
-moz-appearance:none;
/* Mozilla */
-ms-appearance:none;
/* Internet explorer */
then you can set
background-image
select { width:100px; float:left; appearance:none; -webkit-appearance:none; -moz-appearance:none; -ms-appearance:none; border:2px solid #000; background:url('http://www.free-icons-download.net/images/small-down-arrow-icon-15593.png'); background-repeat:no-repeat; background-size:16px 17px; background-position:right 0px;}
<select> <option>1</option> <option>2</option> <option>3</option> <option>4</option></select>
Select box arrow style
Browsers and OS's determine the style of the select boxes in most cases, and it's next to impossible to alter them with CSS alone. You'll have to look into replacement methods. The main trick is to apply appearance: none
which lets you override some of the styling.
My favourite method is this one:
http://cssdeck.com/item/265/styling-select-box-with-css3
It doesn't replace the OS select menu UI element so all the problems related to doing that are non-existant (not being able to break out of the browser window with a long list being the main one).
Good luck :)
Related Topics
How to Avoid Extra Blank Page At End While Printing
Advantages of Using Display:Inline-Block VS Float:Left in Css
Vertical Align Center in Bootstrap 4
Reset/Remove CSS Styles For Element Only
When to Use Margin VS Padding in Css
Why Does the Order of Media Queries Matter in Css
Semi-Transparent Color Layer Over Background-Image
Column Order Manipulation Using Col-Lg-Push and Col-Lg-Pull in Twitter Bootstrap 3
How to Set Opacity in Parent Div and Not Affect in Child Div
Left Aligned Last Row in Centered Grid of Elements
Is There a CSS Selector for Elements Containing Certain Text
Align ≪Div≫ Elements Side by Side
How to Center an Absolutely Positioned Element in a Div
Can a CSS Class Inherit One or More Other Classes
Is There a CSS Hack to Affect Safari Only Not Chrome
Is Quoting the Value of Url() Really Necessary
How to Reference Jsf Image Resource as CSS Background Image Url
Overflow-X:Hidden Doesn't Prevent Content from Overflowing in Mobile Browsers