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

  • Home
  • SEARCH
  • 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 32643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T13:47:43+00:00 2026-05-10T13:47:43+00:00

I am trying to lay out a table-like page with two columns. I want

  • 0

I am trying to lay out a table-like page with two columns. I want the rightmost column to dock to the right of the page, and this column should have a distinct background color. The content in the right side is almost always going to be smaller than that on the left. I would like the div on the right to always be tall enough to reach the separator for the row below it. How can I make my background color fill that space?

.rightfloat {   color: red;   background-color: #BBBBBB;   float: right;   width: 200px; }  .left {   font-size: 20pt; }  .separator {   clear: both;   width: 100%;   border-top: 1px solid black; }
<div class='separator'>   <div class='rightfloat'>     Some really short content.   </div>   <div class='left'>      Some really really really really really really     really really really really big content   </div> </div> <div class='separator'>   <div class='rightfloat'>     Some more short content.   </div>   <div class='left'>      Some really really really really really really     really really really really big content   </div> </div>


Edit: I agree that this example is very table-like and an actual table would be a fine choice. But my ‘real’ page will eventually be less table-like, and I’d just like to first master this task!

Also, for some reason, when I create/edit my posts in IE7, the code shows up correctly in the preview view, but when I actually post the message, the formatting gets removed. Editing my post in Firefox 2 seems to have worked, FWIW.


Another edit: Yeah, I unaccepted GateKiller’s answer. It does indeed work nicely on my simple page, but not in my actual heavier page. I’ll investigate some of the links y’all have pointed me to.

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-10T13:47:43+00:00Added an answer on May 10, 2026 at 1:47 pm

    Ahem…

    The short answer to your question is that you must set the height of 100% to the body and html tag, then set the height to 100% on each div element you want to make 100% the height of the page.

    Actually, 100% height will not work in most design situations – this may be short but it is not a good answer. Google ‘any column longest’ layouts. The best way is to put the left and right cols inside a wrapper div, float the left and right cols and then float the wrapper – this makes it stretch to the height of the inner containers – then set background image on the outer wrapper. But watch for any horizontal margins on the floated elements in case you get the IE ‘double margin float bug’.

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

Sidebar

Related Questions

I'm trying to lay out a web page like this: |-----------------------| | header (fixed)
I want to dynamically collapse table column to specific width (10 px in this
I'm trying to figure out how to best lay this out. I'll explain what
I am trying to lay out objects on a Storyboard using the interface builder
First I'll lay out what I'm trying to achieve in case there's a different
I am trying to scrape some data from a page with a table based
I have been trying to work out the bug on this but can't seem
I am trying to display content of two sequences on web page. First one
I have a table that looks like this: ------------------------------------------------------------------- CUSTNUM (INT), ITEMNUM (INT), MONTH
So I have two tables that have a layout like (but not named): Table

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.