I'm wondering what might be causing my css to only be utilizing CERTAIN aspects in my code and not others in regards to a select/option dropdown.
Here's the code that should be loaded:
<style>
.dis {
color: rgb(255,196,0);
font-size: 20px!important;
font-weight: bold!important;
}
</style>
For options in the select that are disabled, I'd like the color, font size, and font weight to be set. However, as you can see from the screenshot below, only the color option is picking up.
.dis{} is being called, because the rgb(255,196,0) is picking up, and the font-size and font-weight options are not crossed out in Chrome's developer console, but they're not actually doing anything. What am I doing wrong here?
Update
The HTML:
<div class="btn-group">
<select class="btn btn-primary" onClick="note()" onChange="select(this.value)">
<option value="" disabled selected>Filter</option>
<?php
foreach ($output as $sName => $o) {
$ucName = strtoupper($sName);
print "<option class=\"dis\" value=\"\" disabled>$sName</option>";
foreach ($o as $p) {
print "<option>$p</option>";
}
}
?>
</select>
<br>
</div>
Not a duplicate as I was strictly looking to style USING CSS, not Javascript, although yes, you can format using Javascript as well.