CSS Borders

A border needs three things: a style, a width, and a color.

CSS
.box {
  border-style: solid;   /* solid | dashed | dotted | double | none */
  border-width: 2px;
  border-color: #4f46e5;
}

Shorthand

CSS
.box {
  border: 2px solid #4f46e5;
}

One side at a time

CSS
.box {
  border-top: 1px solid #e5e7eb;
  border-bottom: 4px solid #4f46e5;
}

Rounded corners

CSS
.box {
  border-radius: 8px;         /* all corners */
  border-radius: 8px 8px 0 0; /* top-left top-right bottom-right bottom-left */
}

.avatar {
  border-radius: 50%;          /* a perfect circle, given equal width/height */
}