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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:27:22+00:00 2026-05-28T06:27:22+00:00

The attached image is what we want to achieve with html / css. The

  • 0

The attached image is what we want to achieve with html / css. The main points are that the page is 960px centered, the left column takes almost 1/3 of that and the right takes almost 2/3. Both sections are separated by the dark gray line. That’s simple to do.

The problem is that on the left of the left section, we want the same background pattern as the one in the left section. And same for the right side. So on the right of the right section, we also want the light gray background pattern. Of course we don’t know ahead of time how wide the browser will be open.

I’m looking for a clean browser independent solution – not a hack that works in some cases and in some cases doesn’t. Also, if it’s any help we’re using LessCSS (casic CSS3 solutions work too).

Appreciate your input!

screenshot

  • 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-28T06:27:22+00:00Added an answer on May 28, 2026 at 6:27 am

    I’ve managed to get this done using CSS and JS (using jquery, but you could do similar stuff using pure JS). I set the left/right to simply use different background colours – feel free to use images.

    CSS:

    body {
        margin: 0px;
    }
    
    #full {
        min-width: 960px;
        position: relative;
    }
    
    #dleft {
        min-width: 319px;
        background-color: darkGray;
        border-right: solid 3px gray;
        height: 200px;
        position: absolute;
        top: 0px;
        left: 0px
    }
    
    #dright {
        min-width: 638px;
        background-color: lightGray;
        height: 200px;
        position: absolute;
        top: 0px;
        right: 0px;
    }
    
    .left-content {
        float: right;
        border-top: solid 1px gray;
        border-bottom: solid 1px gray;
        width: 299px;
        padding: 10px;
        margin-top: 10px;
    }
    
    .right-content {
        float: left;
        border-top: solid 1px gray;
        border-bottom: solid 1px gray;
        width: 618px;
        padding: 10px;
        margin-top: 10px;
    }
    

    JS:

    function resizeDivs()
    {
        var WIDM = 960;
        var WIDL = 319;
        var WIDR = 638;
    
        var ww = $(window).width();
    
        if(ww <= WIDM)
        {
            $('#full').width(WIDM);
            $('#dleft').width(WIDL);
            $('#dright').width(WIDR);
        }
        else
        {
            var pad = (ww - WIDM) / 2;
            $('#full').width(ww);
            $('#dleft').width(WIDL + pad);
            $('#dright').width(WIDR + pad);
        }               
    }
    
    $(document).ready(resizeDivs);
    $(window).resize(resizeDivs);
    

    And, finally, HTML:

    <body>
        <div id="full">
            <div id='dleft'>
                <div class="left-content">
                    Left Column
                </div>
            </div>
            <div id='dright'>
                <div class="right-content">
                    Right Column
                </div>
            </div>
        </div>
    </body>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to show dialog like attached Image. an image to the left and
In the attached image, I want the column of buttons to match the height
As per attached image, i have dates running along the X axis that starts
Please go thourgh Attached Image where i descirbed my scenario: I want SQL Join
I want to implement similar slider than i mention in attached image. I want
Hi Experts, I want to achieve a behavior that if new value is greater
i want to add effects for image as shown in attached image i don't
The attached screenshot is from OS X/Firefox 3. Note that the center tab (an
Please see attached image alt text http://img248.imageshack.us/img248/7743/datefrom.png I have a table which have FromDate
I am looking something like attached image, How can I implement this in iPhoneSDK.

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.