Borders

Border Properties

Example

A border needs a width, a style and a color; border-radius rounds the corners:

<!DOCTYPE html>
<html>
<head>
  <title>Page Title</title>
  <style>
    div { padding: 10px; margin: 8px 0; font-family: Arial; }
    .b1 { border: 2px solid #04AA6D; }
    .b2 { border: 3px dashed tomato; }
    .b3 { border-bottom: 4px double #1971c2; }
    .b4 { border: 2px solid #282A35; border-radius: 12px; }
    .b5 { width: 70px; height: 70px; padding: 0; border-radius: 50%; background: #ffd43b; }
  </style>
</head>
<body>

<div class="b1">solid</div>
<div class="b2">dashed</div>
<div class="b3">double, bottom only</div>
<div class="b4">rounded corners</div>
<div class="b5"></div>

</body>
</html>

Result