<div class="container">
<table>
<caption><small>Table width is set to 814px. Column widths are also specified but are greater than the width of the table.</small></caption>
<tr>
<td class="col-1" style="width: 900px;">The width of the first columns is set to 900px</td>
<td class="col-2" style="width: 200px;">width of second column is 200px</td>
</tr>
<tr>
<td>content of third cell</td>
<td>content four</td>
</tr>
</table>
</div>
<div class="container container-2">
<table>
<caption><small>Table width is set to 814px. Column widths are also specified but are greater than the width of the table.</small></caption>
<tr>
<td class="col-1">The width of the first columns is set to 900px</td>
<td class="col-2">width of second column is 200px</td>
<td class="col-3">width of third column is 100px</td>
</tr>
<tr>
<td>content of fourth cell</td>
<td>content five</td>
<td>content six</td>
</tr>
</table>
</div>
@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700,900);
body {
background-color: #f5f5f5;
color: #555;
font-size: 1.1em;
font-family: 'Lato', sans-serif;
}
.container {
margin: 40px auto;
width: 800px;
}
table,
td,
th {
padding: 1em;
border: 1px solid #ddd;
text-align: left;
}
table {
background-color: white;
table-layout: auto;
width: 814px;
}
caption {
caption-side: bottom;
font-style: italic;
}
.col-1 {
width: 900px;
}
.col-2 {
width: 200px;
}
.col-3 {
width: 100px;
}