I am attempting to create some space between the select box and the dropdown list. An example image can be seen below:
https://i.sstatic.net/CovTn.png
In the top example, a div was used.
Despite trying padding and margins, I did not achieve the desired results. Is it impossible to do this with select and option tags?
select{
margin-bottom: 1rem;
}
select option:disabled{
margin-bottom: 1rem;
padding-bottom: 1rem;
}
#one{
margin-top: 1rem;
padding-top: 1rem;
}
<select name="select" id="select">
<option value="" disabled selected hidden>Select box</option>
/*need a gap here*/
<option id="one" value="option-one">Option 1</option>
<option value="option-two">Option 2</option>
<option value="option-three">Option 3</option>
</select>