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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:03:32+00:00 2026-05-21T12:03:32+00:00

Ok, so I really don’t know if it’s possible but I believe that must

  • 0

Ok, so I really don’t know if it’s possible but I believe that must be a work around as always! What I want to achieve:

got something like:

<div id="one">
   HEADER pph content...
</div>

<div id="two">
   BOTTOM php content...
</div>

<div id="three">
   BODY php content...
</div>

I what to place the div number two beneath the (auto-size) div number three!

The problem is that the div number two gets generated first. than div number three and I can’t get it to work as I want…

Appreciated your help.
Regards.

  • 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-21T12:03:32+00:00Added an answer on May 21, 2026 at 12:03 pm

    wrap all three divs in a relatively positioned div, then you can absolutely position the "bottom" div at the bottom, it will work better if you are able to approximate the height of the bottom div so you can apply the same amount of padding to the bottom of the wrapper to create space for it

    CSS:

    #wrapper {
      width: 700px; 
      margin: 0 auto; 
      background: #eee; 
      position: relative;
      padding-bottom: 5em;
    }
    
    #two {
      position: absolute;
      bottom: 0;
      left: 5%;
      background: #ffe;
      width: 90%;
      height: 5em;
    }
    

    HTML:

    <div id="wrapper">
    <div id="one">
       HEADER pph content...
    </div>
    <div id="two">
       BOTTOM php content...
    </div>
    <div id="three">
       BODY php content...
    </div>
    </div>
    

    Update re: comments

    Here’s a version that doesn’t need any heights or bottom padding, only works if nothing follows the "footer"

    I put it in a jsfiddle, so you can tweak

    JSFiddle Example: HERE

    with this version #two is still absolutely positioned but rather than guess at the height it becomes a 1px high placeholder, the actual content will then overflow below #two and therefore the main content – #three – you need to ensure div#two (footer) has a child div inside it, again just add it into your php template, then you can style it as you wish, it should take a min-height if you still need that, but this way should just work, if you need white-space below this for any reason you would add padding-bottom to the body element e.g.

    body {padding-bottom: 10em;}
    

    this div (#two) is no longer "contained" in the wrapper element, though it still needs it to take it’s position from


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

Sidebar

Related Questions

I really don't know why but that doesn't seem to work. Seems completely valid
I want to learn VHDL but I really don't know from where to start.
I really don't know how it is possible but I am checking two files
I really don't know how to title this question, but I need some help
I really don't know how is it possible, and I couldn't reproduce the error
I have a homework problem that I really don't know how to start. Here
The thing is, I really don't want the console window to show up, but
I really don't know what i'm doing wrong. I want to count the rows
I really don't know how to express this question. But what I'm trying to
I really don't know how to describe it, but if you understood it 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.