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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:38:15+00:00 2026-05-30T22:38:15+00:00

In the example below there is a blue div followed by a red div

  • 0

In the example below there is a blue div followed by a red div beneath it. They are styled to have a set height. In the upper blue div there is another div, a white div, whose content is too long to be displayed entirely within the upper blue div.

What I would like to have happen is for the white div to overlay both divs. I don’t want to remove the white div from the blue div because the white div will ultimately act as a popup menu for other items to be added to the blue div. So it belongs in the blue div I just want it to temporarily overlay both divs.

Is there a way to make that happen?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<head>
<title>Overlay</title>
<style type="text/css">
#top-div{
  height: 100px;
  background-color: blue;
}
#bottom-div{
  height: 100px;
  background-color: red;
}
#my-list{
  width: 100px;
  background-color: white;
  border: solid 1px black;
}
</style>        
</head>
<body>
<div id="top-div">
  <div id="my-list">
    <ul>
      <li>one</li>
      <li>two</li>
      <li>three</li>
      <li>four</li>
      <li>five</li>
      <li>six</li>
    </ul>
  </div>
</div>
<div id="bottom-div">I am the footer</div>
</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. Editorial Team
    Editorial Team
    2026-05-30T22:38:17+00:00Added an answer on May 30, 2026 at 10:38 pm

    Yes, in the my-list css rules, add:

    float: left;
    position: absolute;
    

    The float will put the div overlaying both the background div’s.
    The absolute will prevent the text in the background div’s from wrapping around the popup div.

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

Sidebar

Related Questions

Let's consider the below example. There, I have: target MAIN calls target t and
My example dictionary is this data_dictionary = {1:'blue',2:'green',3:'red',4:'orange',5:'purple',6:'mauve'} The data_dictionary can have more elements
I have a LINQ Statement. It searches an XML file. (See example below) There
In the example below I'm trying to access the parents sibling. Is there a
Is there anyway to make EF navigational properties unidirectional? In the example below, I
In the example below I have a ListBox with dozens of font names in
I have a list of items (blue nodes below) which are categorized by the
Is there a difference between the two examples below for beginning a Perl script?
When joining across tables (as in the examples below), is there an efficiency difference
The example below throws an InvalidOperationException, Collection was modified; enumeration operation may not execute.

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.