<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Demo</title>
</head>
<body>
<select class="Select-input">
<option value="one">One</option>
<option value="two">Two</option>
<option value="three">Three</option>
<option value="four" style="display:none;">Four</option>
</select>
</body>
</html>
Use inline CSS if you just want to hide just one option using CSS.
If you want to display:block; or display:none; dynamically than use javascript.
Hopefully my contribution will help you.
I took the part Aaron already answered and added the requested padding:
option {padding: 7px 0px 7px 5px;}
option[value=four] {display: none;}
<select class="Select-input">
<option value="one">One</option>
<option value="two">Two</option>
<option value="three">Three</option>
<option value="four">Four</option>
</select>
You can do this:
CSS
.Select-input option:nth-child(4){
display: none;
}
DEMO HERE
Attribute selector is the key, although as Musa points out, you can't hide a option in internet explorer.
Article here on hiding option in IE Options with display:none not hidden in IE
.Select-input option[value=four] {display: none;}
<select class="Select-input">
<option value="one">One</option>
<option value="two">Two</option>
<option value="three">Three</option>
<option value="four">Four</option>
</select>
Try this one, may help
select option:last-child {display:none;}
Try this:
.Select-input option:nth-of-type(2) {
display:none;
}
Or you can do this to:
.Select-input option:nth-child(1){
display: none;
}