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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:21:12+00:00 2026-05-11T00:21:12+00:00

I am trying to layout a header for a web site and I would

  • 0

I am trying to layout a header for a web site and I would like to have 4 containers in the header for dropping various user controls into.

The 4 containers need to be positioned top left, top right, bottom left and bottom right inside the main the header container.

So far I can acheive this, the bit I can’t do is that the bottom left and bottom right containers need to be aligned with the bottoms of their containers at the same level.

If I assign a height to #Bottom it works fine but I don’t want to do this as I cannot predict what controls will be on the page and therefore won’t know what height to set.

It needs to work in IE7.

I hope that all makes sense.

I have created a sample app to demonstrate the problem…

<html xmlns='http://www.w3.org/1999/xhtml' > <head runat='server'>     <title></title>     <style type='text/css'>      .clearFloats     {         clear:both;     }      #topLeft     {         float:left;         border: 1px solid blue;         height:50px;     }      #topRight     {         float:right;         border: 1px solid blue;         height:50px;     }      #bottom     {         position:relative;         border: 1px solid green;     }      #bottomLeft     {         float:left;         border: 1px solid red;         position:absolute;         top:0;     }      #bottomRight     {         float:right;         border: 1px solid red;         position:absolute;         top:0;         right:0;     }      </style> </head> <body>     <form id='form1' runat='server'>     <div>         <div id='topLeft'>top left</div>         <div id='topRight'>top right</div>         <div class='clearFloats' />         <div id='bottom'>             <div id='bottomLeft'>bottom left</div>             <div id='bottomRight'>bottom right<br />Some content<br />some more content</div>             <div class='clearFloats' />         </div>     </div>     </form> </body> </html> 
  • 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. 2026-05-11T00:21:13+00:00Added an answer on May 11, 2026 at 12:21 am

    Sorry I can’t be of more help, but I’m not sure this is possible given the constraints that you have. The main problem is that you want to align to the bottom of the bottom div, but since both bottomRight and bottomLeft are positioned absolute, the items overflow the bottom div. Therefore, using the bottom property aligns them with their bottoms on the (empty) green line in your example.

    The only think I can come up with requires you to know which of your two elements will be taller. You don’t have to know the specific height, but if you can predict which is taller and set it not to use position:absolute, then the container will function and the other (smaller) element will drop into place. Given your example, if you know that bottomRight will be taller:

    #bottomLeft {     float:left;     border: 1px solid red;     position:absolute;     bottom:0; }  #bottomRight {     float:right;     border: 1px solid red; } 

    If you don’t know which will be taller ahead of time, I don’t know what else you can do. You need some content inside the bottom div to give it the proper height, so that the ‘position: absolute; bottom: 0‘ style will have the desired effect.

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

Sidebar

Ask A Question

Stats

  • Questions 145k
  • Answers 145k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer In both cases, the private information (temporary password or reset… May 12, 2026 at 8:44 am
  • Editorial Team
    Editorial Team added an answer You can use @property and @synthesize just like you normally… May 12, 2026 at 8:44 am
  • Editorial Team
    Editorial Team added an answer gl_FragCoord is screen coordinates, so you'd need to have information… May 12, 2026 at 8:44 am

Related Questions

I have a single Rails 2.2.2 app that I want to 'share' with multiple
I am trying to write the HTML and CSS for an internal webapp properly.
I am trying to create a CSS layout where the page looks like it's
I was wondering if there is an existing control that I could use to

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.