4 replies [Last post]
Foobster
Foobster's picture
Offline
Regular
Sweden
Last seen: 12 years 32 weeks ago
Sweden
Timezone: GMT+1
Joined: 2007-03-01
Posts: 26
Points: 0

Hi!

I just don't get it. Something is strange with _one_ of my buttons.

The image that doesn't show is b_guestbook_on.png. Can you see why?

Here are some cut outs from the style sheat:

#home, #photos, #projects, #gbook, #info { cursor: pointer; float: left; height: 27px; margin-right: 12px; }

#menu a {
text-decoration: none;
display: block;
height: 27px;
padding-top: 3px;
padding-left: 15px;
margin-right: 10px;
}

#photos a, #projects a, #gbook a, #info a { color: #020D21;}
#photos a:visited, #projects a:visited, #gbook a:visited, #info a:visited { color: #020D21; }
#photos a:hover, #projects a:hover, #gbook a:hover, #info a:hover { color: #B6D7F2; }
#photos a:active, #projects a:active, #gbook a:active, #info a:active { color: #020D21; }

#gbook {
background-image: url(../images/menu/b_guestbook.png);
width: 127px;
}
#gbook:hover { background-image: url(..images/menu/b_guestbook_on.png); }

#info {
background-image: url(../images/menu/b_info.png);
width: 60px;
}
#info:hover { background-image: url(../images/menu/b_info_on.png); }

And this is some of the code for the menu:

The image is there, and it's working. I've also tried other images with the same result.

Oh, and if you need to have a look at it use FF or IE7: http://offlineversion.com/claes

Foobster
Foobster's picture
Offline
Regular
Sweden
Last seen: 12 years 32 weeks ago
Sweden
Timezone: GMT+1
Joined: 2007-03-01
Posts: 26
Points: 0

Any ideas would be

Any ideas would be appreciated!

Kindly,
Foobster

burlster
burlster's picture
Offline
Leader
Bournemouth
Last seen: 3 years 8 weeks ago
Bournemouth
Timezone: GMT+1
Joined: 2007-05-31
Posts: 693
Points: 45

Does this help?

You're missing a forward slash Smile

Check the link to the image out as it should be ../ but it's currently just ..

Cheers,

J

#gbook:hover { background-image: url(../images/menu/b_guestbook_on.png); }

Have YOU said Hello yet?
The CSSCreator Hello Thread

Foobster
Foobster's picture
Offline
Regular
Sweden
Last seen: 12 years 32 weeks ago
Sweden
Timezone: GMT+1
Joined: 2007-03-01
Posts: 26
Points: 0

ahhhhh....

I just knew it was something small and stupid. I have been starring my self blind, so I just couldn't see it.

Thank you!! (=

burlster
burlster's picture
Offline
Leader
Bournemouth
Last seen: 3 years 8 weeks ago
Bournemouth
Timezone: GMT+1
Joined: 2007-05-31
Posts: 693
Points: 45

Now you can move forward (slash)

No worries...

Fresh pair of eyes always helps,

J

Have YOU said Hello yet?
The CSSCreator Hello Thread