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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:10:19+00:00 2026-05-30T17:10:19+00:00

DIV1 (relative positioning) has a variable number of other DIVS (absolute positioning) inside of

  • 0

DIV1 (relative positioning) has a variable number of other DIVS (absolute positioning) inside of it. The quantity of these absolute divs depends on how many items are retrieved out of a database. Therefore I cannot specify a height for DIV1. As a result, content after DIV1 (such as table ‘section2’ end up beneath the divs.

Is there a simple way to make DIV1 push down any content coming after. Thx.

<div id='DIV1' style='position:relative;'>
  <div style='position:absolute;top:0px;left:0px;width:285px;height:74px;'>
  ....
</div>

<table id='SECTION2'>
<tr>
<td>ITEM A</td>
<td>ITEM B</td>
<td>ITEM C</td>
<td>ITEM D</td>
</tr>
...
</table>
  • 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-30T17:10:21+00:00Added an answer on May 30, 2026 at 5:10 pm

    There is no simple (non-javascript) way as long as the contents are absolutely positioned. You should rethink your design so these items use relative or static (normal) positioning.

    The whole point of absolute positioning is to have no effect on the rest of the document.

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

Sidebar

Related Questions

I'm trying to create two floating divs inside of another: <div style=width:100%;height:500px;position:relative;top:15px;> <div style=position:relative;float:left;width:58%;height:100%;left:10px;>
I have a sequence of couples of elements. (.div1, .div2) I'm using position:relative attribute
I am creating a set of dynamic divs Let div id is div1 div2
$(document).ready(function() { $(.div1).click(function() { $(.div2).stop().animate(...); }); }); div1 and div2 are both divs in
I have a wrapper div1, with div2 inside which contains a string. When i
I have two divs: div1 and div2 . Maintaining the original css styles applied
I have a div ( div1 ) that has its position, width, height, everything
I have the code below: #div1 { position: relative; width:800px; height:540px; top: 50%; left:
http://jsfiddle.net/waitinforatrain/sEX3n/ I have two divs in a container with absolute position. Both of them
I have two divs one above the other. The second on is absolutely positioned

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.