Salve ragazzi, ho scritto il codice che vi posto in basso e volevo porvi questa domanda:
Se osservo l'anteprima sul browser, pare che tutto mi funzioni ma, nel software con cui sto testando tale codice (una versione di prova di Dreamweaver), la parte relativa al counter fa un salto di circa 70px (ad occhio) sapreste aiutarmi a capire dove sbaglio?
forse uso male i float ed il clear?
Parte CSS
.footer {
background-image: url(/img/s_s/bg_f.jpg);
background-repeat: repeat;
background-position: left top;
border: 1px solid #666;
width:941px;
height:145px;
}
.address {
width:400px;
height:125px;
color: #FFF;
line-height: 18px;
padding-top: 10px;
padding-right: 20px;
padding-bottom: 10px;
padding-left: 20px;
}
.com {
width:170px;
height:195px;
padding-top: 10px;
padding-right: 20px;
padding-bottom: 10px;
padding-left: 20px;
background-image: url(/img/com.png);
background-repeat: no-repeat;
background-position: left top;
left: 240px;
top: -70px;
position: relative;
}
.counter {
width:941px;
height:125px;
}
Parte HTML
<div class="footer">
<div class="address" style="float:left;">
xxxxxxxxxx
xxxxxxxxxx
</div>
<div class="com" style="float:left;"></div>
</div>
<div class="counter" style="clear:both;"></div>