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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:53:22+00:00 2026-05-26T21:53:22+00:00

I am trying to create a three column page. My intention is to have

  • 0

I am trying to create a three column page. My intention is to have 2 main sections:

  • Left hand section (this will be split into two columns)
  • Right hand section (this will have onlly one column)

Columns 1 and 2 float left correctly and are side by side. However, I have tried just about everything, and column 3 ALWAYS is displayed under column 1&2

This is what my simplified HTML looks like:

<html>
    <head>
       <style type="text/css">
          body { width: 1200px; }
          .spacer { clear: both; height: 1px; }
          #lhs-section, #rhs-section { float: left; }
          #col1, #col2, #col3 { float: left; min-height: 400px; padding-right: 5px; border: 1px solid #abc; width: 350px; }
       </style>
    </head>
    <body>
        <div>
            <div id="lhs-section">
                <div id="col1"></div>
                <div id="col2"></div>
                <div class="spacer"></div>
            </div>
            <div id="rhs-section">
                <div id="col3"></div>
                <div class="spacer"></div>
            </div>
            <div class="spacer"></div>
        </div>
    </body>
</html>

What am I doing wrong?

  • 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-26T21:53:23+00:00Added an answer on May 26, 2026 at 9:53 pm

    The mean problem with your id names they are different in css & in html markup. Reason you write #lhs-section, #rhs-section in your css & <div id="lhs_section"> <div id="rhs_section">
    in your html.

    So, write like this:

    <div id="lhs-section">
                    <div id="col1"></div>
                    <div id="col2"></div>
                    <div class="spacer"></div>
                </div>
                <div id="rhs-section">
                    <div id="col3"></div>
                    <div class="spacer"></div>
                </div>
                <div class="spacer"></div>
            </div>
    

    Check this http://jsfiddle.net/aU5y8/

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

Sidebar

Related Questions

I am trying to create a UIAlertView with three buttons (which will be stacked).
Trying to use GridBagLayout. I have the method called buildLabel. This creates three label.
I'm trying to create a 3 column page with jQuery where users can move
I am trying to create three controls that are layed out horizontally. In an
I'm trying to create a small html fragment (a div element) consisted of three
I'm trying to expect an error in an rspec test. lambda {Participant.create!({:user_id => three.id,
I'm trying to create an expression tree dynamicly. Let asume that I have two
I have a python script that is trying to create a directory tree dynamically
The first three columns exist. I am trying to create a formula for the
I'm trying to create a semantically correct HTML 5 web page utilizing CSS 3.

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.