1

I need your help,

How can the CSS be modified such that it would allow the current (today's date) to be a in bold font?

I thought that this would be the correct style, but for some reason, it is not working:

.ui-datepicker-today {
    font-weight: bold;
}
Jason Kelly
  • 2,539
  • 10
  • 43
  • 80

3 Answers3

1

You forgot about inner tag(fiddle):

.ui-datepicker-today .ui-state-default {
    font-weight: bold;
}

ui-state-default has font-weight: normal by default jQuery UI stylesheet. So better to override inner tag by class.

Alex
  • 11,115
  • 12
  • 51
  • 64
0
.demo input{
font-weight: bold !important;
}
-1
.ui-datepicker-today a{
    font-weight: bold !important;
}

There is a font-weight: normal; on the anchor inside the td you're targeting. You need to override that with !important or by using more specific identifiers

RyanS
  • 3,964
  • 3
  • 23
  • 37