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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:02:10+00:00 2026-05-15T00:02:10+00:00

I’m beginning to think this is impossible, but thought I’d ask you guys. Basically

  • 0

I’m beginning to think this is impossible, but thought I’d ask you guys.

Basically it’s a 2 column layout, but the “business” wants the following:

-Always take up the entire browser window

-Accommodate resizing of browser window

-Left column will be fixed width, but that width should be flexible from page-to-page.

-Left column has a region at the top with fixed height.

-Left column has a bottom region. It should take up the remaining vertical space of browser window. If content is very large, it will have a scroll bar just for that region.

-Right column should take up remaining horizontal space of browser window.

-Right column has a region at the top with fixed height.

-Right column has a bottom region. It should take up the remaining vertical space of browser window. If content is very large, it will have a scroll bar just for that region.

I’ve tried everything…divs, floated, absolutely positioned, tables, divs in tables…

Is this even possible?

Here’s an image of what it should look like:
http://imgur.com/zk1jP.png

  • 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-15T00:02:10+00:00Added an answer on May 15, 2026 at 12:02 am

    It’s not at all impossible, and you shouldn’t need javascript. You do need some IE6 specific hacks if you care about that browser.

    The key to the layout is the fact that you can set one or more edge positions on an absolutely positioned element. Here’s a good article on the technique: http://www.alistapart.com/articles/conflictingabsolutepositions/

    Here’s a demo: http://www.spookandpuff.com/examples/2col2section.html

    and source:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    
        <title>2 col, 2 section layout.</title>
    
        <style type="text/css" media="screen">
         #leftColumn {
           position:absolute;
           top:10px;
           bottom:10px;
           left:10px;
           width:400px;
         }
    
         #rightColumn {
           position:absolute;
           top:10px;
           bottom:10px;
           right:10px;
           left:410px;/* This must equal the total width of the #leftColumn, incl padding, border, margin, etc. */
         }
    
       .topSection{
         position:absolute;
         top:10px;
         height:120px;
         left:10px;
         right:10px;
         padding:10px;
       }
    
      .bottomSection{
         position:absolute;
         bottom:10px;
         top:160px; /* This must equal the total height of the .topSection, incl padding, border, margin, etc. */
         left:10px;
         right:10px;
         padding:10px;
         overflow-y:auto;
       }
    
         /* Debug styles */
         body {background-color:#CCC;}
         div {border:1px solid #FFF;}
    
         #leftColumn {background-color:#7EF4B0;}
         #rightColumn {background-color:#EEF4A7;}
         #leftColumn .topSection{background-color:#56A97A;}
         #rightColumn .topSection{background-color:#D6D06D;}
    
        </style>
    
    </head>
    
    <body>
        <div id="leftColumn">
          <div class="topSection">
            <p>Left column, top section.</p>
          </div>
    
          <div class="bottomSection">
            <p>Left column, bottom section.</p>
             <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
          </div>
        </div>
    
        <div id="rightColumn">
          <div class="topSection">
            <p>Right column, top section.</p>
    
          </div>
    
          <div class="bottomSection">
            <p>Right column, bottom section.</p>
             <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
             <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
          </div>
        </div>
    </body>
    </html>
    

    There are a few tricks: First off, I only tested this in Firefox to give you the general idea – there are some needed fixes for IE which I haven’t added: check the list apart article up top for details.

    I’ve allowed 10px extra space around all the boxes just to illustrate the idea – you’d probably set these to 0 in a real layout.

    You can set the height of .topSection differently between columns with some rules like:

    #leftColumn .topSection {height:xxx}
    #leftColumn .bottomSection {top:xxx}
    
    #rightColumn .topSection {height:yyy}
    #rightColumn .bottomSection {top:yyy}
    

    I would use a container with a class (or a class on the body tag) to specify the width of the left column, something like:

    #container.narrow #leftColumn {width:100px}
    #container.medium #leftColumn {width:200px}
    #container.wide #leftColumn {width:400px}
    

    That allows you to define a set of width ‘templates’ you can switch between.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a French site that I want to parse, but am running into
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have some data like this: 1 2 3 4 5 9 2 6

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.