Jump to content
Moneybag

Rollover

Recommended Posts

Moneybag

Boas Pessoal

Alguem me sabe dizer como faço um hover de uma imagem, tipo tenho uma barra azul e depois meto o rato em cima e muda de imagem para uma barra verde...

Share this post


Link to post
Share on other sites
cra2sh

Solução caso seja um link <a>

#id a:hover,
.class a:hover
{
background-image:url(qualquercoisa.jpg);
}

Share this post


Link to post
Share on other sites
Moneybag

#menu {
float: center;
list-style: none;
margin: 0;
padding: 0;
width: 170px;
}
#menu li {
font:12px Verdana,sans-serif;
margin: 0;
padding: 0;
}

#menu a {
background: url("barraverde.png") left center no-repeat;
color: #000000;
display: block;
margin: 0;
padding: 8px 12px;
text-decoration: none;

}

#menu a:hover {
background: url("barraazul.png") left center no-repeat;
color: #00FF00;
padding-bottom: 8px;
}

mas tou com um problema no internet explorer os butões ficam com um grande espaço  :wallbash:

Share this post


Link to post
Share on other sites
Moneybag

Resolvido, basta tirar a lista do CSS (li) e fazer de modo normal só com a hiperligação (a) lol.  ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.