Slide 5.16: CSS box model (cont.)
Slide 5.18: CSS border (cont.)
Home

CSS Border

The CSS border properties allow you to specify the style and color of an element’s border.


CSS Style
The border-style property specifies what kind of border to display. The border-style values include:

none: Defines no border

dotted: Defines a dotted border

dashed: Defines a dashed border

solid: Defines a solid border

double: Defines two borders. The width of the two borders are the same as the border-width value

groove: Defines a 3D grooved border. The effect depends on the border-color value

ridge: Defines a 3D ridged border. The effect depends on the border-color value

inset: Defines a 3D inset border. The effect depends on the border-color value

outset: Defines a 3D outset border. The effect depends on the border-color value


Demonstration
The following demonstration shows how the script of HTML and CSS is displayed on the Web: