Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8959877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:32:43+00:00 2026-06-15T15:32:43+00:00

I am using the responsive grid system of twitters bootstrap together with jquery ui

  • 0

I am using the responsive grid system of twitters bootstrap together with jquery ui datepicker.
I have an inline datepicker inside a ‘row’, ‘spanX’ structure like so:

<div class="row">      
<div class="span3 widget">      
<div id="datepicker"></div>
</div>
...
</div>

jQuery('#datepicker').datepicker({
inline: true,
    ...
})

The suggested way for resizing the Datepicker widget is by overriding font-size.
However this is not very helpful if i want to keep the Datepicker size dependent on the size of the spanX parent container while the window is resizing or for different resolutions.

Is there an elegant way to keep the inlined Datepicker at 100% width,height of the parent container?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:32:44+00:00Added an answer on June 15, 2026 at 3:32 pm

    try something like this:

    function datepResize() {
    
        // Get width of parent container
        var width = jQuery("#calendar").width(); //attr('clientWidth');
        if (width == null || width < 1){
            // For IE, revert to offsetWidth if necessary
            width = jQuery("#calendar").attr('offsetWidth');
        }
        width = width - 2; // Fudge factor to prevent horizontal scrollbars
        if (width > 0 &&
            // Only resize if new width exceeds a minimal threshold
            // Fixes IE issue with in-place resizing when mousing-over frame bars
            Math.abs(width - jQuery("div ui-datepicker").width()) > 5)
        {
            if (width < 166){
                jQuery("div.ui-datepicker").css({'font-size': '8px'});
                jQuery(".ui-datepicker td .ui-state-default").css({'padding':'0px','font-size': '6px'});
            }
            else if (width > 228){
                jQuery("div.ui-datepicker").css({'font-size': '13px'});
                jQuery(".ui-datepicker td .ui-state-default").css({'padding':'5px','font-size': '100%'});
    
            }
            else{
                jQuery("div.ui-datepicker").css({'font-size': (width-43)/16+'px'});
            }
        }
    
    }
    

    It gives you a preset size for every response transformation bootstrap makes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a site with a responsive grid system using media-queries with break points.
I'm using the Semantic Grid System to build a responsive site. However, something isn't
I'm using a grid system as a responsive layout for a single webpage on
Using Twitter's Bootstrap's standard 940px fluid grid responsive grid I'm trying to get multiple
I have a responsive layout using Twitter Bootstrap with two columns. div #charts shows
I developed a site using twitter bootstrap and it seems that the responsive layout
I'm creating a dynamic responsive week calendar, using Twitter Bootstrap . Here's my current
I'm designing this login form using the GGS responsive grid (CSS) and although it
I changed my grid system to bootstrap and I'm finding out that its not
So, I'm using the 1140px css grid . It's a responsive css grid design

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.