Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Titre du document</title>
<style>
table {
border-collapse: collapse;
}
table, th, td {
border: 1px solid #cccccc;
}
thead {
background-color: #1c87c9;
color: #ffffff;
}
th {
height: 50px;
text-align: center;
}
td {
padding: 3px 10px;
}
</style>
</head>
<body>
<h2>Exemple de la propriété border-collapse</h2>
<p>Ici la valeur "collapse" est définie pour la propriété border-collapse.</p>
<table>
<thead>
<tr>
<th>Titre</th>
<th>Titre</th>
<th>Titre</th>
<th>Titre</th>
</tr>
</thead>