CSS Border Property
Standard table borders are boring. You are stuck with a single style and a thickness, that's it! Finally, CSS steps up to the plate to give us more variety. We can pick dotted lines, double lines, dashed lines, thickness, and color. Also, we can choose which of the four sides of a box gets a border and what type of border it is.
The following should be pretty self explanatory and shows common ways of using borders:
.simpleBlack { border: 1px solid black; } .topDottedGrayThick { border-top: 5px dotted gray; } .doubleLineThinBlue { border: thin double blue; }
Available border styles
| Value | Description |
| none | Defines no border |
| hidden | The same as "none" as far as I can tell |
| dotted | Defines a dotted border |
| dashed | Defines a dashed border |
| solid | Defines a solid border |
| double | Defines two borders |
| groove | Defines a 3D grooved border |
| ridge | Defines a 3D ridged border |
| inset | Defines a 3D inset border |
| outset | Defines a 3D outset border |
