- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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> div>
@dhiruSingh Please post your code on http://codepen.io and paste the URL here.
@chrisburton… here is the “http://codepen.io/dhiruSingh/pen/fkhuC”
@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…
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.
@hug… my req is little bit tricky… :P
>my req is little bit tricky
No, it’s impossible with CSS. Javascript is the solution.