Per iniziare, buona notte e buon weekend a tutti.
Vi sottopongo un problema:
Vorrei costruire un menu di header con 5 link con un immagine che cambia 'onmouseover'.
Ho seguito tutte le istruzioni come crearla con i CSS ma non capisco perche' non funziona.
Di seguito trovate il codice che ho scritto: perche' nel caso del 1' Tentativo ritorna a capo dopo ogni elemento? Come devo fare per aver tutte le immagini disposte orizzontalmente senza utilizzare la tabella?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset=UTF-8" />
<title></title>
<style type="text/css">
#btn {
height: 19px;
width: 130px;
text-indent: 10000px;
overflow: hidden;
display: list-item;
}
.btnHome { background: url(http://www.gisport.org/images/btnHome.gif) top center no-repeat; }
.btnHome:hover { background-position: bottom center; }
.btnSquadre { background: url(http://www.gisport.org/images/btnSquadre.gif) top center no-repeat; }
.btnSquadre:hover { background-position: bottom center; }
.btnAllenatori { background: url(http://www.gisport.org/images/btnAllenatori.gif) top center no-repeat; }
.btnAllenatori:hover { background-position: bottom center; }
.btnImpianti { background: url(http://www.gisport.org/images/btnImpianti.gif) top center no-repeat; }
.btnImpianti:hover { background-position: bottom center; }
.btnContatti { background: url(http://www.gisport.org/images/btnContatti.gif) top center no-repeat; }
.btnContatti:hover { background-position: bottom center; }
body {
background: #42afdc url(http://www.gisport.org/images/background.jpg);
background-attachment: fixed;
}
</style>
</head>
<body>
<div>
Home
Squadre
Allenatori
Impianti
Contatti
</div>
<table style="align:center; width:100%">
<tr>
<td align="center">Home</td>
<td align="center">Squadre</td>
<td align="center">Allenatori</td>
<td align="center">Impianti</td>
<td align="center">Contatti</td>
</tr>
</table>
</body>
<html>
Grazie a tutti anticipatamente!
Stefanoprova

Rispondi quotando