I have a select box that contains various options, and I am looking to apply unique styles specifically to each option within the select control.
The styles I would like to implement include:
color: #333333;
font-size: 14px;
min-height: 2em;
padding: 0px 16px 0px 16px;
margin-top: 0.125em;
cursor: pointer;
To achieve this, I have assigned the class .taskpanel-select-control
to my select control,
and inserted the following CSS:
.taskpanel-select-control option{
color: #333333;
font-size: 14px;
min-height: 2em;
padding: 0px 16px 0px 16px;
margin-top: 0.125em;
cursor: pointer;
}
The CSS for my select control includes properties such as border-radius, border, appearance styling, background image adjustments, and sizing attributes.
However, these styles are not being applied to the select options. Is there a way to rectify this issue and ensure the desired styles are reflected?