5 replies [Last post]
pirveli
Offline
newbie
Last seen: 15 years 24 weeks ago
Timezone: GMT+4.5
Joined: 2004-12-15
Posts: 3
Points: 0

Hi there!

I would like to create little gallery (only for testing purposes).

.big{
  display: none;
}
.small:hover .big{
  display: block;
}

<img class="small" />
<img class="big" />

don't want to cooperate. I don't have problem with lists - popup lists work fine. I suppose that this way can work only for some html tags, not for all. Lists and links work, but what about the rest? I don't have this thing... IE... or something like that, so this is not browser problem I guess (I use FF1.Innocent. Isn't it?
I read some articles and tutorials but can't deal with this. What to do?

!P

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 10 weeks 5 days ago
Joined: 2004-06-30
Posts: 9668
Points: 801

.sth1:hover .sth2{ display: block; } doesn't work

Are you trying to create a small image, which when hovered over, will display the big image? There's a much easier way to do it.

Verschwindende wrote:
  • CSS doesn't make pies

Stu
Stu's picture
Offline
Enthusiast
Bristol uk
Last seen: 16 years 19 weeks ago
Bristol uk
Joined: 2004-01-20
Posts: 282
Points: 0

.sth1:hover .sth2{ display: block; } doesn't work

Is this what you are looking for?

http://www.stunicholls.myby.co.uk/menu/gallery.html

It's not what you do it's the way that you do it.
So do it with STYLE
http://www.s7u.co.uk

pirveli
Offline
newbie
Last seen: 15 years 24 weeks ago
Timezone: GMT+4.5
Joined: 2004-12-15
Posts: 3
Points: 0

.sth1:hover .sth2{ display: block; } doesn't work

thepineapplehead wrote:
Are you trying to create a small image, which when hovered over, will display the big image?

Correct.
I know that there are many ways to do that, but now I'm playing with various CSS things. Now it's time to :hover and display.
So will I be ever able to do this or not? If yes - how?

!P

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 10 weeks 5 days ago
Joined: 2004-06-30
Posts: 9668
Points: 801

.sth1:hover .sth2{ display: block; } doesn't work

@Stu - Shameless pimpage!

@pirveli - click the link Stu gave you.

Verschwindende wrote:
  • CSS doesn't make pies

pirveli
Offline
newbie
Last seen: 15 years 24 weeks ago
Timezone: GMT+4.5
Joined: 2004-12-15
Posts: 3
Points: 0

.sth1:hover .sth2{ display: block; } doesn't work

thepineapplehead wrote:
@pirveli - click the link Stu gave you.

Sorry, we posted at the same time Smile Didn't notice that!
Thx guys Smile

!P