No replies
peterpaul's picture
Last seen: 11 years 34 weeks ago
Timezone: GMT+2
Joined: 2011-04-06
Posts: 1
Points: 2

Hello everybody,

I have a question about the active pseudo-class? I have got a div (picture-div) with a picture in it. Under neat that div there is a little div (text-div) with some text about the picture, see picture 1.

Picture 1

When I hover over the "text-div" it has to come up a little. I got this all working great, see picture 2.

Picture 2

This is where the trouble is coming. Now I would like the "text-div" go all the way up so it covers the whole "picture-div" when I press the first icon (the arrows.) see picture 3.

Picture 3

The problem I’m having is when I just use class: active it will refer to the div of the icon. And not the "text-div".

Can anyone help me with this problem?

Thank you in advance
Peter Paul