Buongiorno a tutti, mi servirebbe un'aiuto perfavore.
Ho realizzato una pagina html con una tabella. La tabella è divisa in 3x3, praticamente solo il quadrato centrale (che ha dimensioni fisse) ha un colore, il resto attorno ha un colore diverso.
Il tutto funziona bene con FireFox, Opera e Safari, ma con Explorer 7 le celle sopra e sotto al quadrato centrale non si comportano a dovere.
Riporto di seguito il codice html ed i css, qualcuno potrebbe darmi un suggerimento sul come risolvere il problema con explroer 7 (o un workaround o hack)?
Grazie
Enrico
<!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>Untitled Document</title>
<style type="text/css">
<!--
body {
margin:0px;
}
html,body {
height:100%;
width:100%;
margin:0px;
}
.table {
width:100%;
height:100%;
}
.center {
width:200px;
height:200px;
background-color:#f50;
}
.cell_background {
width:auto;
height:auto;
background-color:#05f;
}
-->
</style>
</head>
<body>
<table cellspacing="0" cellpadding="0" class="table">
<tr>
<td class="cell_background"></td>
<td class="cell_background"></td>
<td class="cell_background"></td>
</tr>
<tr>
<td class="cell_background"></td>
<td class="center"></td>
<td class="cell_background"></td>
</tr>
<tr>
<td class="cell_background"></td>
<td class="cell_background"></td>
<td class="cell_background"></td>
</tr>
</table>
</body>
</html>

Rispondi quotando