Hola estoy haciendo un enlace que solo tiene una imagen y no texto, esta imagen la tengo en don tonos el que ven y al hacer hover que cambia. Bueno pues no me funciona, las direcciones de las imágenes están correctas ya que al insertarla en el html sale la que pongo pero no hace la función en css.
Paso a mostraros html y css.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Probando cambio de imagenes</title>
<style type="text/css">
#facebokkimg {
float: left;
height: 40px;
width: 40px;
text-decoration:none;
}
#facebokkimg a {
background-image: url(png/facebook1.png);
background-repeat: no-repeat;
height: 40px;
width: 40px;
float: left;
}
#facebokkimg a:hover,visited{
background-image: url(png/facebook.png);
background-repeat: no-repeat;
float: left;
height: 40px;
width: 40px;
}
</style>
</head>
<body>
<div id="facebokkimg"><a href="#"></a></div>
</body>
</html>
Gracias a todos los que me echen una mano.
Paso a mostraros html y css.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Probando cambio de imagenes</title>
<style type="text/css">
#facebokkimg {
float: left;
height: 40px;
width: 40px;
text-decoration:none;
}
#facebokkimg a {
background-image: url(png/facebook1.png);
background-repeat: no-repeat;
height: 40px;
width: 40px;
float: left;
}
#facebokkimg a:hover,visited{
background-image: url(png/facebook.png);
background-repeat: no-repeat;
float: left;
height: 40px;
width: 40px;
}
</style>
</head>
<body>
<div id="facebokkimg"><a href="#"></a></div>
</body>
</html>
Gracias a todos los que me echen una mano.