The style of the border
This property is a shorthand for border-bottom-style, border-left-style, border-right-style and border-top-style. Its four values set the top, right, bottom and left border respectively. A missing left is the same as right, a missing bottom is the same as top, and a missing right is also the same as top.
Values have the following meanings:
- No border. Color and width are ignored (i.e., the border has width 0, unless the border is an image, see background-image.
- Same as
none, but has different behavior in the border conflict resolution rules for border-collapsed tables.
- A series of round dots.
- A series of square-ended dashes.
- A single line segment.
- Two parallel solid lines with some space between them. (The thickness of the lines is not specified, but the sum of the lines and the space must equal border-width.)
- Looks as if it were carved in the canvas. (This is typically achieved by creating a “shadow” from two colors that are slightly lighter and darker than the border-color.)
- Looks as if it were coming out of the canvas.
- Looks as if the content on the inside of the border is sunken into the canvas. Treated as
ridgein border-collapsed tables.
- Looks as if the content on the inside of the border is coming out of the canvas. Treated as
groovein border-collapsed tables.