I am new to css so pardon if this is very basic. But I have element in my html page like this
<div id="ui-datepicker-div" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all">
And in my css I have following:
.ui-widget-content {
background: yellow !important;
color: blue !important;
border-radius: 0px !important;
border: none;
}
.ui-widget-content .ui-datepicker {
background: blue; !important;
border: 1px solid #555; !important;
color: red; !important;
}
With this I expected my ui-datepicker element to have background of blue however it always turns out to be yellow. No matter where I place .ui-wdget-content. If I want to have css where all ui-widget-element to have background of yellow, except the ui-datepicker to have background of blue. What is the css incantation I have to do?
.ui-widget-content .ui-datepicker {
to.ui-widget-content.ui-datepicker {
. The space means apply to a descendant.<div id="ui-datepicker-div" class="ui-datepicker" style="ui-widget ui-widget-content ui-helper-clearfix ui-corner-all">