...

View Full Version : css rollerovers tag



threedash
11-07-2009, 08:45 PM
Hey there,

I just stumbled on this forum and I think this would be a perfect place to post this question.

on my website, threedash.com, I am currently creating a navigation bar by CSS using sprite.. (im sure this technique is super old, but it's super new to me ) lol

so for the main page (the only one i've built), i was hoping someone could look at the code and tell me how to do i set the "welcome to threedash" to only show the "active" state, and not the "normal" state.

thanks in advance to anyone who took the time to look over my codes.

_threedash (uber noob)

SB65
11-07-2009, 08:58 PM
a.homenav {
background:transparent url(/images/home_sprite.jpg) no-repeat scroll 0 -119px;
display:block;
height:119px;
overflow:hidden;
padding:0;
}

which is the same background positioning for the sprite as a.homenav:hover.

threedash
11-07-2009, 09:07 PM
what does changing this tag do?

SB65
11-08-2009, 10:00 AM
It moves the background position of the sprite for the homenav so as to show the "active" image.

threedash
11-08-2009, 07:59 PM
fixed, thanks...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum