I'm trying to stylize option
tags in this select
box, but when I click on it option tags are wider than the select box, but they should be equal. Is it possible to make it happen via css?
Here's the current progress: http://codepen.io/anon/pen/aBrzqz
.search {
border: 1px solid #ccc;
width: 250px;
overflow: hidden;
background: #fafafa url("http://www.honigwine.com/assets/images/global/tabs/arrow-down.png") no-repeat 90% 50%;
font-family: 'Open Sans', sans-serif;
font-size: 16px;
float: left;
}
.search select {
padding: 10px 18px;
height: 55px;
width: 110%;
border: none;
box-shadow: none;
background: transparent;
cursor: pointer;
}
.search select .option {
padding: 10px 18px;
width: 250px;
}
<div class="search">
<select>
<option value="" class="option">Choose something</option>
<option value="">One</option>
<option value="">Two</option>
<option value="">Three</option>
</select>
</div>