/* Border-Color: Used to set the color of an element's border. */
border-color: black;
/* Border-Style: Allows you to set the style of a border - none, dotted, dashed, solid, or double. */
border-style: dotted;
/* Border-Radius: Allows you to add rounded corners to */
border-radius: 15px;
/* Border-Width: Used to set the width of an element's border. */
border-width: 20%
/* Border: Shorthand Property */
border: 10px, red, double;
.your-class-name{
border: 1px solid red;
}
// border: 'width', 'style', 'color'
width:
size: px, pt, cm, em, etc.
style:
dotted, dashed, solid, double, groove, ridge, inset, outset, none, hidden
color:
red, #000, rgb(255,0,255), etc.
Margin
_____________________________________________________________________
| Border |
| ____________________________________________ |
| | Padding | |
| | _________________ | |
Margin | Border | Padding | Content | Padding | Border | Margin
| | _________________ | |
| | Padding | |
| |__________________________________________| |
| Border |
|___________________________________________________________________|
Margin