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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:35:10+00:00 2026-06-11T02:35:10+00:00

I have a two column layout set up, and I want to have both

  • 0

I have a two column layout set up, and I want to have both columns automatically stretch to fill parent div of the two columns, The reason being that the left column has a background and border to it, and i want it to take up the entire side of the page so it won’t look messy and such. I use inline-block to align the two columns, not float or anything (I can’t use overflow:hidden because it messes up some of my features that may go out of the div, ex: dropdown menus) So I need to find a simple way to do this, using this method.

jsfiddle:

http://jsfiddle.net/sFBGX/

  • 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-11T02:35:11+00:00Added an answer on June 11, 2026 at 2:35 am

    You can use CSS table layout (not HTML table layout, that would be poor semantics):

    .container {
        display: table;
        table-layout: fixed;
        width: 944px;
        font-size: 0.75em;
    
    }
    .col {
        display: table-cell;
        vertical-align: top;
    }
    
    .container .left
    {
        width: 236px;
        background-color:grey;
    }
    .container .right
    {
        width: 708px;
        background-color:yellow;
    }
    <div class="container">
        <div class="col left">Left</div>
        <div class="col right">Right
        </br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br>Hey
          
        </div>
    </div>

    Compatibility is IE8+ and fallback for IE6/7 if needed is exactly the same as for inline-block

    Longer explanations in previous answers: here and there with also the good old method of faux-columns (your design must be thought with this technique in mind)

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

Sidebar

Related Questions

I want a two-column div layout, where each one can have variable width e.g.
I have the age-old problem of a div wrapping a two-column layout. My sidebar
I have a two-column layout and I want the left column to stay put
I have a two column layout: <html> <head></head> <body> <div id=container> <div id=header></div> <div
I have a two column layout: http://jsfiddle.net/KqQ42/1/ Now I would like that the left
I have a two column site layout that has the content of the left
I have a website with a two column layout, like there are dozens I
I have to do a user registration form (classical layout with two columns, labels
I have a two column dataframe in R and i want to add a
I am trying to make a HTML page using two column layout. I have

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.