CSS Property - Border Style

Value: none | dotted | dashed | solid | double | groove | ridge | inset | outset
Initial: none
Applies to: all elements
Inherited: no
Percentage values: N/A

The "border-style" property sets the style of the four borders. It can have from one to four values, and the values are set on the different sides as for "border-width".

Example:

p{
border-style: solid dotted;
}

This is the result

In the above example, the horizontal borders are "solid" and the vertical borders are "dotted".

Since the initial value of the border styles is "none", no borders will be visible unless the border style is set.

The border styles mean:

CSS1 core: UAs may interpret all of "dotted", "dashed", "double", "groove", "ridge", "inset" and "outset" as "solid".

Check Out Our Sponsors
Bookmarks
RSS Feed    Search
Remortgages