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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:16:13+00:00 2026-06-12T01:16:13+00:00

I am using the Jquery UI resizable plugin. When a resize occurs I update

  • 0

I am using the Jquery UI resizable plugin. When a resize occurs I update another div with the appropriate offset to maintain its position. This all works fine in Chrome when zoomed at 100%. If I zoom to 90% sometimes the table within the second div shifts down below the first div.

HTML:

<div>
    <div class="left"></div>
    <div class="right">
        <table><tr><td>Blah</td></tr>
            <tr><td>Blah</td></tr>
            <tr><td>Blah</td></tr>
            <tr><td>Blah</td></tr>
        </table>
    </div>
</div>

Javascript:

$(".left").resizable({
    resize: function ()
    {
        $(".right").css({marginLeft:$(this).width() + "px"});
    }
});​

​
CSS:

div
{
  display:block
  position:absolute;
}
.left
{
  width:99px; 
  height:500px;
  background-color:gray;   
  display:block;
  float:left;
  position:relative;
}
.right
{
    margin-left:99px;
    background-color: blue;
    display:block;
    position:relative;
}

table
{
    width:100%;
}

My question is, how do I properly calculate the left margin for the .right div?

To reproduce the problem, zoom chrome to 90% and resize the left element in this fiddle: http://jsfiddle.net/johnkoer/FyE6f/45/

  • 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-12T01:16:14+00:00Added an answer on June 12, 2026 at 1:16 am

    http://jsfiddle.net/FyE6f/55/

    (it looks like just setting the overflow to auto might work just as well as the code below)

    $(".left").resizable({
        resize: function ()
        {
            $(".right").css({overflow:"hidden"});
            $(".right").css({marginLeft:$(this).width() + "px"});
        },
        stop: function ()
        {
            $(".right").css({overflow:"auto"});
        }
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using this jQuery plugin: http://api.jquery.com/slideToggle/ I have this code: <div id=panel><form action=postit.php
i'm trying to create resizable div element and i'm using jQuery. This is my
I am using jquery ui to resize div but my fixed position div is
I'm using jQuery UI's resizable function to resize a div containing an image. On
How do I resize and image using jQuery but keep its aspect ratio the
I'm using Jquery UI to allow the user to resize a div with a
I have a div I've made resizable using jQuery UI. It works fine, but
I am going to using jQuery UI.Layout Plug-in with JQuery UI resizable plugin. the
I have a div that is made resizable using jQuery UI. How can I
I am using jquery-ui-resizable plugin in my project. By default when you make a

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.