CSS 1. Borders: Border
CSS 1. Borders: Border
1. Borders
CSS border properties allow you to specify the style, width, and color of an
element's border.
p.dotted {border-style: dotted;}
p.dashed {border-style: dashed;}
p.solid {border-style: solid;}
p.double {border-style: double;}
p.groove {border-style: groove;}
p.ridge {border-style: ridge;}
p.inset {border-style: inset;}
p.outset {border-style: outset;}
p.none {border-style: none;}
p.hidden {border-style: hidden;}
p.mix {border-style: dotted dashed solid double;}
border-style: groove;
border-width: medium;
border-color: black;
2. Padding
CSS has properties for specifying the padding for each side of an element:
padding-top
padding-right
padding-bottom
padding-left
div {
padding-top: 50px;
padding-right: 30px;
padding-bottom: 50px;
padding-left: 80px;
}