Reputation: 205
Hi everyone can anyone help me how to make my selectbox just like in the picture using css.
im new in web developing can anyone help me how to make this kind of design?
htm code:
<select class="black" >
<option>Here is the first option</opstion>
<option>red</opstion>
<option>white</opstion>
</select>
Upvotes: 0
Views: 1206
Reputation: 128786
.black {
background: #444444;
border: 1px solid #26487f;
border-radius: 1px;
color: #fff;
outline: 1px solid #a5c7fe;
padding: 6px 10px;
}
You also need to fix the mistakes in your HTML: </opstion>
should be </option>
.
Upvotes: 3