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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:14:52+00:00 2026-06-14T14:14:52+00:00

i have a div (div_1) which when hovered over has it’s background image and

  • 0

i have a div (div_1) which when hovered over has it’s background image and size replaced by css hover state.

the problem is that the positioning of a div (div_2) ‘below’ this one is then effected when hovering over div_1 because its position is relative.

before i change div_2’s position to absolute in order to prevent this from happening, i was wondering if there was any way to prevent div_1’s hover state effecting div_2 without resorting to changing div_2’s position to absolute?

thank you.

  • 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-14T14:14:53+00:00Added an answer on June 14, 2026 at 2:14 pm

    update/solution: from https://stackoverflow.com/a/4502693/1063287

    you can control the positioning of ‘div_2’ when hovering over ‘div_1’ with this:

    #div_1:hover + #div_2 {
        top: -100px !important;
    }
    

    note this particular solution works where div_2 is not a child of div_1, solutions for other scenarios (within the same div, directly after the parent div or otherwise) can be found at the above link.

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

Sidebar

Related Questions

I have a div id css called frontwidth which holds 1 img 1 title
I have an anchor tag, which when hovered, I want a certain div (mark)
i have a problem with IE8 + jQuery.css('top') function. 1) I have a DIV
I have some markup which contains the firebug hidden div. (long story short, the
I have a jquery script which replaces 1 div with another and replaces 1
I have a DIV which loads other DIVs on button clicks but the default
I have 5 drop down lists on a Form, under which I have DIV
I have a value here: itemList[i].ul.li.div[1].div[2].p Which is Updated n minutes ago, where n
I have a large table with numbers only and a small font-size, which makes
I have a simple UL list, when you hover over the More list item

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.