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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:17:19+00:00 2026-05-26T09:17:19+00:00

I am attempting to have one div hovering over another div full of content.

  • 0

I am attempting to have one div hovering over another div full of content. This can be done using position:absolute and z-index. The problem is I want the hovering div to be the same height and width of the div full of content.

I’ve tried 100% height and width, but since I wrote:

<div class=hover></div><div id=content>FULL OF CONTENT</div>

the hover div doesn’t recognize what the height and width of the content div is.

Any suggestions?

  • 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-26T09:17:20+00:00Added an answer on May 26, 2026 at 9:17 am

    Put the hovering div inside the other div:

    /* CSS */
    #content {
      position: relative;
    }
    .hover {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
    }
    
    <div id="content">
      Content goes here.
      <div class="hover">
      </div>
    </div>
    

    The hover div may be only over the content. If you set any borders or margins on the outer div, the hover div will not cover that.

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

Sidebar

Related Questions

I am attempting a one page design using loads of jQuery. I have a
I'm new to jquery and attempting to display text when hovering over a div.
I have been attempting to have a object that I can use across multiple
I have been attempting to write a VBA Script that can parse out other
I'm attempting to create a 100% width toolbar. This toolbar needs to have a
I'm attempting to create a true mosaic application. At the moment I have one
Scratching my head on this one. With jQuery tabs I am attempting to use
I have a basic overlay setup using css/html/jquery and it goes like this: <a
I'm getting some unexpected results calling one makefile from another. I have two makefiles,
I have one very large text file(27GB) that I am attempting to make smaller

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.