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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:32:30+00:00 2026-06-06T15:32:30+00:00

I’m currently doing an experimental page for college and I came upon a simple

  • 0

I’m currently doing an experimental page for college and I came upon a simple problem with a huge amount of brain burned. The idea is that you don’t have to click in anything to navigate the site, giving you a very fluid, light experience to the user.

Well I’ve got this list that each of it’s items have to trigger a div to come by and be nice. I was experimenting with CSS3’s sibling selector tilde and make the div have a left:0 when the li is called. The only problem is the simbling selector only works if the object doesn’t have a parent of it’s own. I’ve tried calling it’s hole family like “#father-element #child-element:hover ~ #father-element2 #child-element 2” but it ignores me completely like I’m some kind of idiot.

Here’s the link of a simplified version of the headburner: http://jsfiddle.net/GuiHarrison/rDnYE/

So what do you think, guys? Should I shut up and try jQuery (if so, how?) or there really is a way in CSS?

  • 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-06T15:32:32+00:00Added an answer on June 6, 2026 at 3:32 pm

    You can achieve this by doing some change in mark-up given below:

    HTML:

    <ul>
        <li id="cinco">item1</li>
        <li id="seis">item2</li>
        <li id="sete">item3</li>
        <li id="oito">item4</li>
    
        // As you've defined these items' position as absolute so no matter if you define them as list items.
        <li id="e">
            <div>This should work now - cinco</div>
        </li>
        <li id="f">
            <div>This should work now - seis</div>
        </li>
        <li id="g">
            <div>This should work now - sete</div>
        </li>
        <li id="h">
            <div>This should work now - oito</div>
        </li>
    </ul>
    

    CSS:

        ul {margin-top:10px; position: relative}
        ul li#cinco:hover ~ #e,
        ul li#seis:hover ~ #f,
        ul li#sete:hover ~ #g,
        ul li#oito:hover ~ #h { left:300px; background-color:#BADA55; }
    

    See the Demo here : http://jsfiddle.net/rathoreahsan/gew5B/

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

Sidebar

Related Questions

I am doing a simple coin flipping experiment for class that involves flipping a
I am currently running into a problem where an element is coming back from
I'm making a simple page using Google Maps API 3. My first. One marker
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns 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.