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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:26:28+00:00 2026-06-10T14:26:28+00:00

I am trying to make a 3 column layout with the 2 fixed width

  • 0

I am trying to make a 3 column layout with the 2 fixed width divs (floated left and right) and with a fluid center div that changes it’s width according to display width. All of those are contained in a wrapper div.
The way that I went about doing this is by creating to divs with fixed width that are floated left and right a 3rd div that is positioned relative the wrapper div with margin right in order to leave place for the right div to show.
However the problem is that if the fluid div has content it overflows the right div, ignoring the margin-right style. Why does this happen?
It also seems that the 1111

get’s preformatted for some odd reason.

The code:

<div style="width: 90%; border: 1px solid black; margin: 0 auto; overflow: hidden; position: relative;">
    <div style="width: 150px; height: 150px; border: 1px solid red; display: inline-block; float: left; text-decoration: underline; min-width: ???">remove<br /> assets</div>
    <div style="border: 1px solid #999; position: absolute; left: 160px; margin-right: 160px;"><p>111111111111111111111111111111111111111<br />1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111</p></div>
    <div style="width: 150px; height: 150px; border: 1px solid red; float: right">111</div>
</div>
  • 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-10T14:26:29+00:00Added an answer on June 10, 2026 at 2:26 pm

    I recommend using two divs floated.

    On the right one, place the middle and the right divs.

    All that is done via floats:

    HTML:

    <div class="left">content for the left</div>
    <div class="rightContainer">
      <div class="right">right content</div>
      <div class="middle">middle content</div>
    </div>
    

    CSS:

    .left {
        float: left;
        width: 100px;
        overflow: hidden;
        min-height: 30px;
        background: red;
    }
    .rightContainer {
        float: none;
        min-height: 30px;
        overflow: hidden;
        background: yellow;
    }
    .right {
        float: right;
        width: 100px;
        overflow: hidden;
        min-height: 30px;
        background: blue;
    }​
    .middle {
        overflow: hidden;
        min-height: 30px;
        background: green;
    }
    

    example:

    UPDATE: applied to your content: http://jsfiddle.net/2KXW5/1/

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

Sidebar

Related Questions

I'm trying to make a 2 column layout using class=left and class=right, at the
I'm trying to make a CSS fixed width, two column, header and footer layout.
I'm trying to make a two-column page using a div-based layout (no tables please!).
I am trying to make a 3 column layout webpage with percentage wrapper width,
I have a 3 column layout, and am trying to make it more responsive
i am trying to write a function that will make DataRow[column] return nullable typed
I'm trying to make JTextPane with two columns, both aligning to left like that:
I am trying to make a 2 column layout, apparently the bane of CSS.
I am trying to make a HTML page using two column layout. I have
I'm am trying to make a three column layout for a website from an

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.