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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:46:07+00:00 2026-05-20T18:46:07+00:00

i have this structure of DIVs <div id=container> <div=outer> <div id=inner> </div> </div> </div>

  • 0

i have this structure of DIVs

<div id="container">
   <div="outer">
      <div id="inner">
      </div>
   </div>
</div>

and i made the ‘outer’ div resizable() using this jqueryUi

$("#outer").resizable({ containment: 'parent', alsoResize: "#inner"  });

till now every thing is OK!

//////////////// the issue /////////////////

When i resize the outer it resize the inner with it but when it reaches the ‘container’ div it STOPS which is OK but the inner keep resizing with the mouse moving and exceed the ‘container’ and the ‘outer’ DIVs!!!!

can i make the ‘inner’ ALSO STOPS with the ‘outer’ when it reaches the ‘container’ div limits????

Thank You in advance, i know you can help 🙂

  • 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-20T18:46:07+00:00Added an answer on May 20, 2026 at 6:46 pm

    You can solve this issue by setting maxHeight and maxWith for your container.

    $("#outer").resizable({
        alsoResize: '#inner',
        containment: 'parent',
        maxHeight: 500,
        maxWidth:500
    });
    

    Check working example at http://jsfiddle.net/WV2nn/

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

Sidebar

Related Questions

Suppose i have this structure of elements: <div class=parent> <div class=something1> <div class=something2> <div
I have this table structure and would like to map it using Fluent Hibernate
I have this html structure <div class=top_menu> <ul> <li class=left><a href= class=family-filter>asdas</a></li> <li class=welcome>Welcome
I have this structure in my dom: <label>London<input type=checkbox name=London></label><br> <div class=innerpost> <label>N1 2AB<input
I have a large HTML document which has roughly this structure: <div id=a> <!--
I have a parent div gal1 , inside which there can be further divs
I have a list of div's. This is one div structure: <div class=commentWrap id=@Model.CommentId>
Ok, so i have a HTML structure like this: <div class=content> <div id=a1 class=article>
I have some recursive HTML in the following tree structure: div.item div.content input div.container
If I have a structure like this: <body> <div data-role=page data-dom-cache=true id=foo>...</div> <div data-role=page

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.