Borders

The Border Properties

Up to three properties may be specified for a border:

  1. Width
  2. Style - required, otherwise the border will not be visible
  3. Color

Border property values

width

style a style must be specified or there will be no border

color

The background appears behind the border

Note that the background
goes behind the border.


Solid Border

Dashed Border

Dotted Border

Double Border

Groove Border

Ridge Border

Inset Border

Outset Border

Applying Specific Properties To Specific Sides

The following links go to further information from the Worldwide Web Consortium.

Applying borders by using border-sides-value and properties

Examples:

       border-right-width: 3em;
       border-top-style: ridge;
       border-bottom-color: #B73C9A;