I have checked some article here, but I just got no answer in my case. I need the empty content td show no bg-color, and I have css an :empty, but it does not work.
sample code here: http://codepen.io/bard/pen/aDKiv
Thanks experts.
It is not working as your TD has a blank space in itself. Do not let that ' ' come in TD and it will work as ' ' does not fulfill the condition of :empty
And change the following
#wp-calendar tr td:empty {
background:none !important;
}
you can achieve it as follows:
#wp-calendar tr td.pad:not(:empty) {
border:none !important;
background-color: rgba(255,255,255,0.04);
}
if you want to apply some style in case of empty. try following:
#wp-calendar tr td.pad:(:empty) {
/* some style */
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With