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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:01:16+00:00 2026-06-16T16:01:16+00:00

I have this pure CSS hover that shows a div when you rollover a

  • 0

I have this pure CSS hover that shows a div when you rollover a div. Here is the CSS:

.rolloverad {
height:42px;
width:235px;
position: absolute;
top: 0px;
left: 404px;
background:#ccc;
}

.rolloveradexpanded {
display: none;
position:absolute;
width:500px;
height:250px;
z-index:30;
background:#000;
color:#fff;
}

.rolloverad:hover + .rolloveradexpanded {
display: block;
}​

This works great, accept for one tiny thing… When your mouse leaves the div area for “rolloverad” , the bigger div goes back to display:none. I would like it so when you hover over the rolloverad div, and the rolloveradexpanded div appears, the rolloverexpanded div stays visible until your mouse leaves the rolloverexpanded div area, and not the smaller rollover ad div. It makes a lot more sense once you view the jsfiddle:
http://jsfiddle.net/JuruE/

Looking at the jsfiddle.. when you hover over the grey box that says “hover” a big black box appears. Now, once your mouse leaves the small grey box area, the big black box dissapears.. I would like to make it so the black box div wont dissapear until your mouse has left the bigger box area, and not the smaller one.

If anyone has any suggestions or answers on how to fix this problem with CSS, or maybe even a jquery alternative.. that would be soo soo so awesome! 🙂

  • 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-16T16:01:17+00:00Added an answer on June 16, 2026 at 4:01 pm

    You can add another selector that does just that:

    .rolloverad:hover + .rolloveradexpanded, .rolloveradexpanded:hover {
        display: block;
    }​
    

    Demo: http://jsfiddle.net/JuruE/1/

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

Sidebar

Related Questions

I have 3 columns that look something like this: <div style=width:900px;margin:0 auto id=container> <div
I have this set of tabs in css: /*tabs*/ .tabs { position: relative; min-height:
I have a number of images of very differing height and width that I
I have this problem with css: a dynamic div contains a single line of
I'm used to JQuery but not to pure Javascript. I have this: document.getElementById(div-id a).style.javascript_property
I am creating a CSS hover drop-down menu. I have a search icon that
I have followed this Star rating widget with pure CSS tutorial, and even though
I have a menu using pure CSS, hover a parent li item display the
I have a pure CSS implementation of horizontal menus that works fine on browsers
I have a pure C++ application developed using VC 6.0. I would like this

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.