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,333
  • 9
  • 35
  • 76

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.

Pinal
  • 10,775
  • 12
  • 49
  • 62
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,715
  • 3
  • 22
  • 36