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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:12:55+00:00 2026-05-27T03:12:55+00:00

I want to make two columns page with box one (box1) and box two(box2).

  • 0

I want to make two columns page with box one (box1) and box two(box2). Then just after h2, I want to make two columns inside box2 with box2.1 and box2.2.

Here is my HTML code

<body>
  <div id="box1">
  <h1>Here is the box one.</h2>
  </div>

  <div id="box2">
  <h2>Here is the box two.</h2>

      <div id="box21">
      <p>Here is the box2.1</p>
      </div>

      <div id="box22">
      <p>Here is box 2.2</p>
      </div>
  </div>
</body>

And here is my CSS part.

#contentLeft{
float:left;
width:300px;

After that, I have no idea what to do. Tried number of ways, it didn’t work. Could you please help here?

  • 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-27T03:12:56+00:00Added an answer on May 27, 2026 at 3:12 am

    It may help you:

    HTML:

    <div id="box1">
      <h1>Here is the box one.</h2>
      </div>
      <div id="box2">
      <h2>Here is the box two.</h2>
          <div id="box21">
          <p>Here is the box2.1</p>
          </div>
          <div id="box22">
          <p>Here is box 2.2</p>
          </div>
      </div>
    

    CSS:

    #box1{
        float:left;
        widht:50%;
        background:#FF0000;
    }
    #box2{
        float:left;
        width:50%;
        background:#00FF00;
    }
    #box21{
        float:left;
        width:50%;
        background:#0000FF;
    }
    #box22{
        float:left;
        width:50%;
        background:#e4e4e4;
    }
    

    Just for your reminder, don’t use dot(.) in id or class name. You can also simplified the CSS by using the same class name in all div.

    .box{
        float:left;
        width:50%;
    }
    

    OR the following code:

    #box1, #box2, #box21, #box22{
        float:left;
        width:50%;
    }
    

    See the example : http://jsfiddle.net/N4hMw/2/

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

Sidebar

Related Questions

I want to select two columns in my table and make them unique but
I am trying to lay out a table-like page with two columns. I want
I want to make a table that simply has two integer columns to serve
I want to make two block stand side by side. In Opera, Chrome and
I want to make two tables on single screen, so that if Table A
I want to make a single figure in R with two plots in a
Lets say I want to make a class myClass with two slots A and
I have these two URL's I want to make available to my users: /Account/Orders
i have two strings in a php i want to make following checks in
I want to make a number selector like in alarm application, which has two

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.