I can't seem to be able to define a height for a <select> even setting it to display:block
select{
height: 100px; /* ignored */
display: inline-block;
}
Any idea why?
-edit-
I am using google chrome
I can't seem to be able to define a height for a <select> even setting it to display:block
select{
height: 100px; /* ignored */
display: inline-block;
}
Any idea why?
-edit-
I am using google chrome
If you're working on a Mac, make sure to put
-webkit-appearance: none;
above the styling attributes, eg:
select {
-webkit-appearance: none;
height: 100px;
display: inline-block;
}
Then you can style to your hearts content.
Try this Code..
Now this code works in all browsers...
CSS
select
{
min-height:20px;
display: block;
}
Html
<select>
<option>hi</option>
</select>