Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Ul li:hover with outside div control

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #41267
    dhiruSingh
    Member

    I have a written a code in CSS for displaying image with text with transition effect..
    the code is something like this

    /*******HTML*********

    < div class=black-box> 

    • Hello There
    #116806
    chrisburton
    Participant

    @dhiruSingh Please post your code on http://codepen.io and paste the URL here.

    #116817
    dhiruSingh
    Member
    #117169
    dhiruSingh
    Member

    @jamy_za.. i want to control parent element with child element.. can i???


    @alexmccabe
    … i want to use pure CSS for that.. if there is only JS solution then i think must go with JS…

    #117189
    Kitty Giraudel
    Participant

    CSS doesn’t provide any way to select a parent element. You can target children or siblings, nothing else.

    The best you can do in your case is black-box:hover ~ ul li which is -I guess- not what you were asking for.

    #117190
    dhiruSingh
    Member

    @hug… my req is little bit tricky… :P

    #117201
    Paulie_D
    Member

    >my req is little bit tricky

    No, it’s impossible with CSS. Javascript is the solution.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.