Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Titre du document</title>
<style>
table {
border-collapse: separate;
border-spacing: 10px;
background-color: #1c87c9;
}
table,
th,
td {
border: 2px solid #aaa;
text-align: center;
}
th {
color: #fff;
background-color: #095484;
padding: 10px;
}
td {
background-color: #eee;
padding: 20px;
}
</style>
</head>
<body>
<h2>Cellpadding et Cellspacing</h2>
<table>
<thead>
<tr>
<th>Titre</th>
<th>Titre</th>
<th>Titre</th>
<th>Titre</th>