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

The Archive Base Latest Questions

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

I have two html divs to separate sections of the webpage’s masterpage. Their positioning

  • 0

I have two html divs to separate sections of the webpage’s masterpage. Their positioning are both relative. Div 1 contains a content placeholder and the contents height may vary. Div 2 is used the footer and only contains one label which is the only content in the footer. The label’s positioning is relative.

My problem is sometimes the contents of Div 2 (inside the contentplaceholder within the masterpage) is too long therefore overlaps the location of where I set my footer(the label). The content is primarily a varying sized table.

How can I set Div 2’s location to automatically adjust to the size of Div 1 to prevent overlapping?

The content of Div 1’s content placeholder is an aspx page with dynamically created tables so dont deletet the asp.net tag.

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

    Add and Edit the following to the existing one and change the class names as per your Div’s.

     .Div1 {
          overflow: auto;
        }
    
    .Div2 {
      clear: both; /* remove position: relative; */
    

    I don’t know about your css, so I am just guessing these all causing the problem and if its not try to add margin on your div 1 to prevent overlapping, and adding float too.

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

Sidebar

Related Questions

I have two divs for different sections of my webpage, a working and a
In my html page i have two divs inside a container div. The two
lets say i have two pages links.html & contents.php ... first page contains only
I have a jQuery tools scroller set up with controls managing two separate divs
I have two divs, both with 0.6 opacity. I need them to overlap but
I have two divs <div id=ResultsId> Here are the results from the session!<br> </div>
I currently have two divs on my site: Notice that both have border [same
Possible Duplicate: click link below a higher z-index div I have two divs, one
I have two DIVs inside one DIV. One of the DIVs is floated left,
I have two divs float:left. I z-index the first div to be above, but

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.