Jojo01
Jojo01

Reputation: 1289

css trying to resize jQuery datepicker

I need to resize this datepicker... But the calendar part just doesn't want to resize with the datepicker...

Image:

datepicker

Code(CSS):

.ui-datepicker-inline {
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 10px;
    background: #FFFFFF;
}
@media screen and (max-width: 540px) {
    #headerSeparator {
        width: 80%;
    }
    .ui-datepicker-inline, .ui-datepicker, .ui-datepicker-calendar, .ui-widget-content {
        width: 80%;
    }
}

Edit:

here is my javascript

$(document).ready(function()
                    {
                        $("#datepicker").datepicker({ dayNamesMin: ["DIM", "LYN", "MAR", "MER", "JEU", "VEN", "SAM"], monthNames: ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"], altField: "#date", dateFormat: "yy-mm-dd" });
                    });

Upvotes: 2

Views: 359

Answers (1)

Alias Varghese
Alias Varghese

Reputation: 2172

Better to change the font size of date picker rather than width.Just try this code:

.ui-datepicker{
 font-size:13px;
}

Upvotes: 1

Related Questions