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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:22:30+00:00 2026-05-22T18:22:30+00:00

I currently work on the following page: divResizable has been modified by jQuery using

  • 0

I currently work on the following page:

schema of the page

divResizable has been modified by jQuery using the following code in $().ready()

 $("#divResizable").resizable({ handles: 'e' });
 $("#divResizable").bind("resize", function (event, ui) {
      $('#divContent').width(850 -(ui.size.width - 175));
 });

As you can see, I try to increase the width of divContent when divResizable gets smaller and the other way around. However, with this code, divContent doesn’t always “grow” to the left side only, it sometimes extends to the right side to the irrelevant div, which doesn’t make the resizing look good at all.

Is there any input for a more sophisticated method to let the width of those 2 divs correspond?

Something I could think of would be to set width of divContent to

(start of irrelevant - divResizable.width) == 850px
  ^ e.g 1025px          ^ e.g. 175px

How exactly would I do this using jQuery?

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

    Demo – Your layout can handle this. If you wrap resizable and content together, you only need to adjust resizable‘s width:

    HTML

    <div id="page">
      <div id="wrapper">
        <div id="resizable">resizable</div>
        <div id="content">content</div>
      </div>
      <div id="irrelevant">irrlevant</div>
    </div>
    

    CSS

    #resizable  { float:left; width:175px; }
    #content    { overflow:hidden; width:auto; }
    #wrapper    { float:left; width:1025px; }
    #irrelevant { }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I am using the following xslt code: <xsl:if test=position() = 3> <div> <object
So at the moment my page is currently working with the following code in
Anything I have tried didn't work. Currenly I have following code to change asp.net
Why doesn't following code work correctly in FireFox 3.6? I have tested in IE7,
Given the following code (that doesn't work): while True: # Snip: print out current
I currently work at a company that has a lot of custom applications that
Currently I am working with Jquery mobile and encountered the following problem: I am
I'´m currently twiddling with an application that has a setup matching the following chat
I'm having issues getting jQuery tooltips (using Tipsy) to work. The tooltips work fine
Currently I have The following code: void Page_Load(object sender, System.EventArgs e) { string connectionString

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.