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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:05:46+00:00 2026-05-23T14:05:46+00:00

I have the following markup: <html> <body style=margin:0;padding:0> <div> <div style=border:3px solid red; width:70%;

  • 0

I have the following markup:

<html>
<body style="margin:0;padding:0">
    <div>
        <div style="border:3px solid red; width:70%; position:absolute; left:2.5%">Left</div>
        <div style="border:3px solid blue; width:25%; position: absolute; left:72.5%">Right</div>
        <div style="border:3px solid black; width:95%; margin: 0 auto">Bottom</div>
    </div>
</body>
</html>

What I am trying to achieve here is three divs layed out like this:

+---------------------------+--------+
|Left                       |Right   |
+---------------------------+--------+
|Bottom                              |
+------------------------------------+

However, with my markup the “bottom” div is overlapping with the “left” & “bottom” ones.

How should I style those 3 elements to achieve this effect?

Note that “bottom” is not the last element on the page. I would simply like “left” and “right” to be in one line and for the page flow to continue with default positioning from the following lines.


EDIT: In addition to the accepted answer… If you don’t have static heights or for some reason don’t want to hardcode it, you can achieve similar effect with:

<div style="border:3px solid red; width:70%; position:absolute; left:2.5%">Left</div>
<div style="border:3px solid blue; width:25%; margin-left:72.5%">Right</div>
<div style="border:3px solid black; width:95%; margin: 0 auto">Bottom</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-05-23T14:05:46+00:00Added an answer on May 23, 2026 at 2:05 pm

    I think the problem is that when you have elements positioned absolutely, they are taken out of the document flow. So the elements that come after can’t see them, assume they aren’t there, and jump up. To just get your “bottom” div to be under your “left”/”right” divs, you have to give it a margin-top equal to their heights (or something similar to that).

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

Sidebar

Related Questions

I have the following markup: <div style=overflow:auto;width:500px;height:100px;> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li>
I have the following HTML markup: <body> <div class=wrapper> <div class=head> <p class=title>title</p> <a
I have following HTML markup, <div id=subcontent_l> <p> <a href=/membership-packages/><img height=202 width=644 alt= src=http://74.52.72.231/wp-content/uploads/2010/06/banner1.jpg
I have the following markup: <div class=ui-accordion ui-widget style=margin: 10px 0px 12px 0px;> <h3
I have the following html markup on my page, <div id=sig_container> <div id=layer1 class=layer
I have the following HTML markup, <section> <img width=106 height=113 title=key-staff-tim alt=key-staff-tim class=attachment-post-thumbnail wp-post-image
I have the following HTML markup <div id=contents> <div id=content_nav> something goes here </div>
I have the following HTML markup and I want the menu div tag to
I have the following html: HTML markup <ul id=test> <li><a href=http://www.yahoo.com>yahoo</a></li> <li><a href=http://www.google.com>Google</a></li> </ul>
I have the following markup that is used to produce a pop-up style mega-menu

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.