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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:28:18+00:00 2026-06-13T02:28:18+00:00

I have a two-column layout, composed of fixed-width floated divs. Inside the first column

  • 0

I have a two-column layout, composed of fixed-width floated divs. Inside the first column is an extra wide element. So the html layout looks something like this:

<div id="container">
    <div id="column1">
        ...short content...
        <div id="extra-wide">
            ...wide content...
        </div>
    </div>
    <div id="column2">
        ...long content...
    </div>
</div>

As annotated, the first column contains a short amount of content and the second column contains a long amount of content. The CSS looks something like this:

#column1 { width: 200px; }
#column2 { width: 100px; }
#extra-wide { width: 250px; }

So the extra-wide element is actually wider than its parent, column1. And I don’t know the heights of any of the elements ahead of time — they are all variable.

The issue here is that column2 appears overlapped over the extra-wide element in column1. Here’s a jsfiddle to help visualize this: http://jsfiddle.net/e3KNg/ (This fiddle has some content inserted and colors added to make what’s happening more clear). Here’s a screenshot:

column2 overlapping extra-wide

Without altering the basic HTML structure or the widths of the three elements, is it possible (without the aid of Javascript) to force the extra-wide element in column1 to appear below column2? Here is the effect I’m trying to achieve:

column2 pushing extra-wide down

I know this can be done by rearranging html elements or by using Javascript, but I’m looking for a solution within the above constraints. I tried using clearing divs in various places, removing or adjusting floats, and trying some overflow settings, but could not achieve the effect I was looking for.

  • 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-13T02:28:20+00:00Added an answer on June 13, 2026 at 2:28 am

    looking at it, without set heights on the content elements or using javascript to work their heights out or set positioning on the extra-wide element, what you are looking for can’t be achieved.

    Heres a fiddle which works using an absolute positioning of the extra wide element and a top value, as well as using some clever css to make the columns the same height.

    http://jsfiddle.net/yKRu4/1/

    As i siad this works, but i honestly feel what you are looking for can’t be achieved with the restrictions you have put in place.

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

Sidebar

Related Questions

I want a two-column div layout, where each one can have variable width e.g.
I have a CSS two column layout which is fixed and centered. On pages
I am trying to make a HTML page using two column layout. I have
I have a two column layout: <html> <head></head> <body> <div id=container> <div id=header></div> <div
I have a very basic two column layout. The first column has a background
I have the following scenario: a two column layout made up of divs A
I have a two column layout in which I have a static width for
I have a two-column layout with two 'absolute' positioned divs. #left { position: absolute;
I have a two column layout: http://jsfiddle.net/KqQ42/1/ Now I would like that the left
I have a two column site layout that has the content of the left

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.