Has anyone used the datepicker widget (Scott Richards)? I am looking for an easy way to adjust the dimensions of the calendar display - I can't seem to find anything about the size of that monster in the docs! Any hints?
If you mean the jQuery UI DatePicker from Widget Exchange,
look at ui.datepicker.css
Change this:
.ui-datepicker { width: 17em; padding: .2em .2em 0; }
to this:
.ui-datepicker { width: 45%; padding: .2em .2em 0; }
Adjust font-sizes in the embedded CSS.
#datepicker .ui-datepicker-title {
font-size: 0.75em
}
/* Text attributes for the Days of Week Text */
#datepicker .ui-datepicker table th
{
font-size: .8em;
color: #000000;
font-weight: bold;
}
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
That's a pain to have to go through and adjust all those widths. Do you use this thing?
Also, your suggested changes don't seem to be having any effect for me -
http://www.neapco.com/test-datepicker.php
Finally, are you disturbed by the fact that you need to assign two elements the 'datepicker' id?
I must be missing something.
Try adding this to the bottom of your embedded styles.
.ui-datepicker { width: 40%; padding: .2em .2em 0; }
.ui-datepicker { font-size: 25% }
Do you use this thing?
No. You might like Clean Calendar for this.
http://marcgrabanski.com/articles/clean-calendar
You can get it from Github
https://github.com/1Marc/javascript-clean-calendar
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
North America
Europe, Middle East and Africa
Asia Pacific