- gli elementi che hai flottato hanno una width definita?
si
- e il loro contenitore è abbastanza largo per contenerli tutti?
immagino di si.. masthead non ha impostata la larghezza
- hai usato dei margini sugli elementi con float?
no
Di seguito l'html:
..e il css:
codice:
* {
margin: 0;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
background-image: url(images/sfondo.gif);
background-repeat: repeat-y;
background-position: center;
font: small Verdana, Arial, sans-serif;
background-color: #99CCFF;
}
#container {
margin: 0 auto;
padding: 0;
margin-bottom: 20px;
width: 770px;
position: relative;
min-height: 100%;
height: auto !important;
height: 100%;
}
...
/* ------------- INTESTAZIONE */
#doppiobottone {
float: left;
}
#masthead {
background: yellow;
border-bottom: 1px solid #555;
margin-bottom: 10px;
font-size: 0;
}
#masthead a.hp {
background: url(images/butHP.gif) no-repeat bottom;
width: 90px;
height: 40px;
float: left;
clear: none;
}
#masthead a.hp:hover {
background: url(images/butHP.gif) no-repeat top;
}
#masthead a.personaggio {
background: url(images/butpersonaggio.gif) no-repeat bottom;
width: 90px;
height: 40px;
float: left;
clear: none;
}
#masthead a.personaggio:hover {
background: url(images/butpersonaggio.gif) no-repeat top;
}
#masthead a.catalogo {
background: url(images/butCatalogoNovita.gif) no-repeat ;
background-position: 0 -40px;
width: 90px;
height: 20px;
float: left;
clear: none;
}
#masthead a.catalogo:hover {
background-position: 0 0;
}
#masthead a.novita {
background: url(images/butCatalogoNovita.gif) no-repeat ;
background-position: 0 -60px;
width: 90px;
height: 20px;
float: left;
clear: left;
}
#masthead a.novita:hover {
background-position: 0 -20px;
}
#masthead a.rivenditori {
background: url(images/butrivenditori.gif) no-repeat bottom;
width: 90px;
height: 40px;
float: left;
clear: none;
}
#masthead a.rivenditori:hover {
background: url(images/butrivenditori.gif) no-repeat top;
}
#masthead a.links {
background: url(images/butlinks.gif) no-repeat bottom;
width: 90px;
height: 40px;
float: left;
clear: none;
}
#masthead a.links:hover {
background: url(images/butlinks.gif) no-repeat top;
}
#masthead a.foto {
background: url(images/butfoto.gif) no-repeat bottom;
width: 90px;
height: 40px;
float: left;
clear: none;
}
#masthead a.foto:hover {
background: url(images/butfoto.gif) no-repeat top;
}
#masthead a.commenti {
background: url(images/butcontatti.gif) no-repeat bottom;
width: 90px;
height: 40px;
float: left;
clear: none;
}
#masthead a.commenti:hover {
background: url(images/butcontatti.gif) no-repeat top;
}
#masthead img.barraleft {
float: left;
clear: none;
}
#masthead img.barraright {
float: right;
clear: none;
}
#masthead img.barra {
width: 770px;
}
Riguardo ai css ho ancora molto da imparare, e temo di aver fatto confusione da qualche parte..
Grazie per l'aiuto!
Alex