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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:09:28+00:00 2026-05-24T22:09:28+00:00

I got the following HTML structure: <div id=main-container> <div id=left-column>…</div> <div id=right-column>…</div> </div> My

  • 0

I got the following HTML structure:

<div id="main-container">
    <div id="left-column">...</div>
    <div id="right-column">...</div>
</div>

My CSS:

#main-container
{
    width:80%;
    margin:20px auto;    
}

#left-column
{
    width:400px;
    float:left;
}

#right-column
{
    width:100%;
    float:right;
    padding:26px 0 0 0;
}

Very typical layout, nothing fancy. What I cannot understand though is why the right-column instead of taking up the the space it has in the main-container (so 80% of the whole screen minus 400px) it spans the whole main-container and gets pushed below the left-column.

I tried setting it’s width to 70% and it’s okay until I resize the window, then the right-column overlaps the left one.

Thanks!

  • 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-24T22:09:29+00:00Added an answer on May 24, 2026 at 10:09 pm

    Setting the width of the right column to 100% means it is going to take the full width of the container, and not the full width minus other elements within the container.

    I suggest you achieve the column by column structure (where one column has a fixed width and the other takes the remaining space) as follows:

    #left-column
    {
        width: 400px;
        float: left;
    }    
    #right-column
    {
        padding: 26px 0 0 0;
        margin-left: 410px;
    }
    

    Here is an example.

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

Sidebar

Related Questions

I've got following html structure: <div style=width:100%> <div style=float:left; width:70%><input /></div> <div style=float:left>element with
I've got a div, with the following HTML and CSS. In an attempt to
I'm using jQuery 1.3.2: <script src=../../Scripts/jquery-1.3.2.js type=text/javascript></script> I've got the following html: <div id=container-div>
I have following html site structure: <body> <div id=header></div> <div id=container> <div id=util_header></div> <div
I got the following css: div#header, header { height: 88px; width: 100%; background-image: url('/images/header.jpg');
I got the following Html: <div class=horizontalRadio> <label for=SearchBag.DisplayTypeChips id=DisplayTypeChipsLabel> <%=ViewData.Model.T9nProvider.TranslateById(CommonWeb.Chips)%> </label> <%=Html.RadioButton(displayType, DisplayTypes.Chip,
Ive got the following html setup: <div id=div1> <div id=content1>blaat</div> <div id=content1>blaat2</div> </div> it
I've got the following html and css In Firefox the computed font size is
I got a buttons row in the following html: HTML : <div class=buttons> <div><input
I have a html structure like this : <div id=nav_holder style=position:absolute;border-radius:400px;width:0px;height:0px;background-color:#460203;z-index:350px;> <div id=inner_wrap> </div>

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.