I have added select tag but not able to correctly align the arrow inside the select area.It is aligned ouside the select area. Not able to click the arrow also.
Any wrong in the CSS I applied.
.custom-selection select {
border:none;
background-color:white;
color: blue;
padding: 10px;
width: 100%;
border-radius: 10px;
font-size: 20px;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16), 0 1px 4px rgba(0, 0, 0, 0.26);
margin: 0;
-webkit-appearance: none;
-moz-appearance: none;
}
.custom-selection option{
border-radius: 18px;
}
.custom-selection::before {
position: absolute;
top: 0;
right: 0;
width: 20%;
height: 100%;
text-align: center;
font-size: 28px;
color:blue;
background-color: rgba(255, 255, 255, 0.1);
pointer-events: none;
}
.custom-selection:hover::before {
color:white;
background-color: rgba(255, 255, 255, 0.2);
}
.custom-selection::after {
content: "\25bc";
position: absolute;
top: 0;
right: 10;
}
<div class="custom-selection">
<select class="round" id="myselect">
</select>
</div>