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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:12:59+00:00 2026-06-05T16:12:59+00:00

I have three divs, within a content div. Container width 70%. Within that I

  • 0

I have three divs, within a content div.

Container width 70%.
Within that I have
-Left, width 20%.
-Content, width 60%.
-Right, width 20%.

I would like container to take up 70% of the page’s width, and the inner ones (left, content, and right) to take up 20%, 60% and 20% of the container div.

I have tried other questions on here, I have tried Google, but can’t seem to find the right answer. Please help me stop them from overlapping.

Maximized Browser

But when I re-size the browser, the divs overlap. Like this:

Re-sized Browser

Here’s the relevant CSS code:

#container{
    width: 70%;
}
#left {
    float: left;
    width: 20%;
    min-width: 200px;
}
#content {
    float: left;
    width: 60%;
    min-width: 600px;
}
#right {
    float: right;
    width: 20%;
    min-width: 200px;
}
  • 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-05T16:13:01+00:00Added an answer on June 5, 2026 at 4:13 pm

    Just remove the min-width from your CSS! And give min-width to the container with margin: auto to make it center.

    Try this CSS:

    #container{
        width: 70%;
        min-width: 1000px;
        margin: auto;
    }
    #left {
        float: left;
        width: 20%;
    }
    #content {
        float: left;
        width: 60%;
    }
    #right {
        float: right;
        width: 20%;
    }
    

    Check out fiddle here: http://jsfiddle.net/UaqU7/2/

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

Sidebar

Related Questions

I have a container div and would like to place three div tags within
i have three divs like that: <div id=1 >id=1</div> <div id=2>id=2</div> <div id=3>id=3</div> Now
I have three divs page-left page-right flipper I have images of equal size in
I have a container div that holds two internal divs; both should take 100%
Have three divs in a container that I want to float over a large
I have three divs with float:left <div class=center> <div class=fade1></div> <div class=fade2></div> <div class=fade3></div>
I have 4 divs set to float:left; each with a width: 400px; within a
I have a large DIV of 586px width. Within this are two smaller DIVs,
I have a DIV on my page. Within the DIV I have other DIVs
I have two divs on a page. a grid-container that takes a background and

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.