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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:37:42+00:00 2026-06-10T11:37:42+00:00

I’m trying to create a page layout like This But I am not sure

  • 0

I’m trying to create a page layout like This

But I am not sure how to achieve it. What I mean; in that page you can see there are two areas in the page and you can resize the areas using the bar between them.

Thanks!

  • 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-10T11:37:44+00:00Added an answer on June 10, 2026 at 11:37 am

    Yes, it’s certainly possible. There’s probably a JQuery or MooTools plugin out there that does it. Otherwise, I rolled you a simple example using JQuery that you can play with. See this JSFiddle.

    Basically the HTML is like this:

    <div id="left">Left column!</div>
    <div id="verticalresizer">&nbsp;</div>
    <div id="right">Right column!</div>​
    

    And then they are positioned absolutely (extra CSS from example cut for simplicity’s sake):

    html, body { 
        height: 100%; 
    }
    
    #left { 
        width: 200px; /* default starting width */
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
    }
    #right { 
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        left: 204px; /* width of left col + 4 pixel wide resizer */
    }
    #verticalresizer { 
        background-color: black; /* so it can be seen */
        width: 4px;
        height: 100%;
        cursor: col-resize;
        position: absolute;
        top: 0;
        left: 200px; /* width of left col */
        bottom: 0;
    }
    

    ​
    Then the JavaScript. First an explanation. Pretty much the code listens for the user to click down on the vertical resizer. Once that happens, it listens for the mouse moving. Every time the mouse moves, resize the columns accordingly and keep the slider underneath the mouse. When the user lets go of the mouse (mouseup), stop listening/resizing.

    var left = 200; // starting left col width
    var isClicked = false;
    var startX = 200; // starting horizontal position of resizer bar
    var isMouseDown = false;
    
    // attach listeners to the document itself
    $(document).mousedown(function() {
        isMouseDown = true;
    }).mouseup(function() {
        isMouseDown = false;
    }).mousemove( function(event) {
        if (isClicked && isMouseDown) {
            var newX = event.pageX;
    
            if (startX != newX) {
                left += (newX - startX);
                if (left < 0) {
                    left = 0; // keep from moving the slider beyond the left edge of the screen
                    newX = 0;
                }
                setWidthOfLeftColumn( left );
                startX = newX;
            }
        }
    });
    
    // attach click listeners to the resizer slider
    $("#verticalresizer").mousedown( function(event) {
        isClicked = true;
        startX = event.pageX;
    }).mouseup( function (event) {
        isClicked = false;  
    });
    
    // function to resize everything
    function setWidthOfLeftColumn( value ) {
        $("#left").css("width", "" + left + "px");
         $("#right").css("left", "" + (left + 4) + "px");
         $("#verticalresizer").css("left", "" + left + "px");
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I am trying to render a haml file in a javascript response like so:
I have a French site that I want to parse, but am running into
I know there's a lot of other questions out there that deal with this

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.