Si tratta di fare un po' di conti con margini, padding e bordi, il premio nobel non c'entra proprio:
codice:
.myTable {
width:850px;
margin:0 auto;
border: none;
border-collapse: collapse;
}
.myTable th {
background-color: #94C27B;
border: 1px solid #000;
color: #308700;
}
.myTable .th1 {
width:413px;
}
#myTableInner {
height:450px;
overflow:auto;
margin:0 15px;
}
.tabella_perc {
width:100%;
background: #eef7e6;
border: none;
border-collapse: collapse;
font-size: 12px;
}
.tabella_perc td {
color: #000;
border: 1px solid black;
vertical-align: top;
padding: 0 5px 0 5px;
}
.tabella_perc .td1 {
width:388px;
}
-->
</style>
</head>
<body>
<table class="myTable">
<thead>
<tr>
<th class="th1">1</th>
<th>2</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2">
<div id="myTableInner">
<table class="tabella_perc">
<tr>
<td class="td1">colonna1</td>
<td>colonna2</td>
</tr>
<tr>
<td>colonna1</td>
<td>colonna2</td>
</tr>
...
</table>
</div></td>
</tr>
</tbody>
</table>
</body>
</html>