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 6556183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:54:43+00:00 2026-05-25T12:54:43+00:00

I actually posted a similar question before and resolved it in a way that

  • 0

I actually posted a similar question before and resolved it in a way that I thought my code was very buggy and that the problem must lie somewhere in that.

So what I did was to create a simple page with a colorbox ajax modal and a normal div example on the page itself.

What I’m trying to do is to change the size of the container so that I can show an additional div – which works on the main page. I does not, however work inside the modal even after executing

$.fn.colorbox.resize();

or

$('.modal1').colorbox.resize();

Here is the code itself:

$("button").click(function(){
        $(".container").width('300');
    $('.left').show("slide", { direction: "right" }, 200);
    $.fn.colorbox.resize();
    $('.modal1').colorbox.resize();
});

And here is the example page I made

I tried to do it as cleanly as possible so that it’s easy to read. Thanks everyone! 🙂

  • 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-05-25T12:54:44+00:00Added an answer on May 25, 2026 at 12:54 pm

    You are loading your colobox content from an external file, hence, first of all, you need to apply a live selector for your button.

    Then pass your colorbox resize method the width, it seems to have trouble auto-resizing it, eventually because of that delayed sliding animation.

    $("button").live('click', function(){
        $(".container").width('300');
        $('.left').show("slide", { direction: "right" }, 200);
        $('.modal1').colorbox.resize({width: 300});
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is very similar to that posed here . My problem is that
[I just posted a similar question, but I'm not sure whether is actually got
I've actually posted this question before, but it hasn't been answered. Maybe I wasn't
I actually posted this question because I found similar questions but not a perfect
Previously I posted a question regarding multithreading. Actually my intension is to send SMS
My website has the typical container that is centered in the middle (very similar
I have posted something similar before and I got some suggestion which I have
I have an issue with a Loop that doesn't actually loop. I've posted a
This seems similar to a number of other questions posted, but is actually a
I posted a similar question on how scalable linq is. There were so many

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.