questa è la struttura
Codice PHP:
<div id="container">
<div id="principale" >
<div id="colonna_1">
<div class="header">
<div id="top_1">
<div id="intestazione_top">[img]img/logo.jpg[/img]</div>
<div id="menu">
<table width="200" cellpadding="5" cellspacing="0" border="0">
<tr>
<td>[url="azienda.php"]Azienda[/url]</td>
</tr>
<tr>
<td>[url="dove_siamo.php"]Dove Siamo[/url]</td>
</tr>
<tr>
<td>[url="contattaci.php"]Contattaci[/url]</td>
</tr>
</table>
</div>
</div>
<div class="ombra_1"></div>
<div class="ombra_3"></div>
<div id="sotto_top_1">
<div id="img_top_fissa"></div>
</div>
</div>
<div id="corpo_centrale">
<div id="colonna_sinistra">
<div id="struttura_corpo">
<div id="zona_centro">
</div>
</div>
</div>
</div>
<div id="spazio_bianco">
<?php include ("bottom.html"); ?>
</div>
</div>
<div id="colonna_2">
<?php include ("menu.php");?>
</div>
</div>
</div>
questo invece il css
Codice PHP:
/* CSS Document */
body, html {
text-align: left;
margin-top:10px;
font-family:Geneva, Arial, Helvetica, sans-serif;
font-size:12px;
text-align:left;
background-color: #C8C8C8;
}
#container {
margin:auto;
width:800px;
background-color:#FFFFFF;
position:relative;
}
#principale {
width:800px;
}
#colonna_1 {
margin-top:0px;
width:800px;
float:left;
min-height:500px;
height:100%;
background-color:#FFFFFF;
}
#colonna_2 {
width:206px;
left:556px;
top:0px;
position:relative;
left:556px;
top:0px;
position /**/:absolute;
top /**/:0px;
left /**/:556px;
background-color:#B95315;
border-right-width:1px;
border-right-width /**/:2px;
border-left-width:1px;
border-left-width /**/:2px;
border-right-style: solid;
border-left-style: solid;
border-right-color: #FFFFFF;
border-left-color: #FFFFFF;
}
.header {
height:229px;
background-color:FFFFFF;
}
#top_1 {
float:left;
width:800px;
height:110px;
margin-top:10px;
margin-top /**/:20px;
margin-bottom:0px;
background-color:#999999;
}
#intestazione_top {
position:absolute;
top:25px;
left:10px;
}
#sotto_top_1 {
width:800px;
float:left;
height:101px;
margin-top:0px;
background-image: url(../img/scritta_background.jpg);
background-repeat: no-repeat;
}
#img_top_fissa {
position:relative;
top:-5px;
left:30px;
}
.ombra_1 {
width:556px;
float:left;
height:4.5px;
height /**/:9px;
background-image:url(../img/sotto_top.jpg);
background-position:left bottom;
background-repeat:no-repeat;
}
.ombra_3 {
width:35px;
height:4.5px;
height /**/:9px;
float:right;
background-image:url(../img/sotto_top_corto.jpg);
background-position:bottom;
background-repeat:repeat-x;
}
#corpo_centrale {
float:left;
width:100%;
height:100%;
min-height:300px;
}
#zona_centro {
float:left;
width:330px;
height:100%;
margin-top:5px;
margin-top /**/:10px;
margin-right:2.5px;
margin-right /**/:5px;
margin-left:5px;
margin-left /**/:10px;
}
.sotto_corpo_1 {
width:800px;
height:9px;
float:left;
background-image:url(../img/sotto_top_old1.jpg);
background-position:left bottom;
background-repeat:repeat-x;
}
.sotto_corpo_3 {
width:35px;
height:9px;
float:right;
background-image:url(../img/sotto_top_corto.jpg);
background-position:bottom;
background-repeat:repeat-x;
}
#colonna_sinistra {
width:555px;
float:left;
}
#struttura_corpo {
width:555px;
height:100%;
float:left;
clear:right;
}
#corpo_prodotti
{
margin-top:30px;
margin-left:0px;
width:200px;
float:left;
background-color: #B95315;
height:100%;
}
.td_prodotti_catalogo {
padding-top:8px;
padding-left:15px;
width:100%;
font-family:Geneva, Arial, Helvetica, sans-serif;
color: #FFFFFF;
font-size: 12px;
}
#td_sotto_prodotti_catalogo {
width:100%;
font-size: 11px;
}
#td_sotto_prodotti_catalogo a{
margin-bottom:1px;
margin-top:1px;
margin-left: 20px;
text-decoration: none;
color:#F9D5BF;
font-size: 11px;
}
#td_sotto_prodotti_catalogo a:hover{
margin-bottom:1px;
margin-top:1px;
margin-left: 20px;
text-decoration: none;
color:#333333;
font-size: 11px;
}
#menu {
position:relative;
top:25px;
left:470px;
width:200px;
color:#FFFFFF;
padding-left: 5px;
border-left-width: 1px;
border-left-style: solid;
border-left-color: #FFFFFF;
}
#menu a {
color:#FFFFFF;
font-size:12px;
font-family:Geneva, Arial, Helvetica, sans-serif;
text-decoration:none;
font-weight: bold;
}
#spazio_bianco {
clear: both;
float: left;
height: 30px;
width: 100%;
vertical-align: top;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #333333;
}
come posso far affinche anche su IE<7 si visualizzi sempre in alto nella posizione corretta?
quale hack utilizzare?
grazie