Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery DatePicker background color

I am using an example of JQuery DatePicker from link text

on my asp.net page.

But, background color of the datepicker is white. I am not sure how to change this. (Change to default color) My asp.net page background page is white, maybe because of that?

Any help would be appereicate it. Thanks.

like image 563
Tony Avatar asked Nov 25 '10 15:11

Tony


1 Answers

The background formatting for the control comes from the .ui-widget-content CSS class. Assuming you only want to apply to the date picker and not other controls you want something like this:

.ui-datepicker .ui-widget-content {
    background: #999 none;
}

If instead you want to change the background colour for all controls, just find the existing .ui-widget-content class in your CSS and change that.

like image 113
andynormancx Avatar answered Oct 13 '22 19:10

andynormancx