Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Titre du document</title>
<style>
p, div {
padding: 5px;
}
.border1 {
border: 5px solid #ccc;
}
.border2 {
border: 5px dotted #1c87c9;
}
div {
border: thick double #8ebf42;
}
</style>
</head>
<body>
<h2>Exemple de la propriété border</h2>
<p class="border1">Un titre avec une bordure verte et solide.</p>
<p class="border2">Un titre avec une bordure bleu et en pointillé.</p>
<div>Un élément div avec une double borudre verte.</div>
</body>
</html>