Sept. 20, 1998

Putting Style Sheets in Perspective

border-style

Like colors, borders are not limited to a default value. Although not all browsers will display all of the different styles, the two biggies will display some of the styles, reverting to a solid line for those styles that aren't recognized.

Initial Value:
see individual properties
Allowed Values:
<border-style>
inherit
Applies to:
all elements
Inherited?:
no

When specifying the styles, if one value is specified, it applies to all four sides. If two values are specified, the first value is applied to the top and bottom, the second value is applied to the left and right sides. If three values are specified, the first value is applied to the top, the second to the left and right sides, and the third to the bottom. If there are four values, they apply to the top, right, bottom, and left, respectively.

The 'border-style' property sets the style of the four borders to one of the values displayed below.

Note: The hidden value is the same as "none", with one exception. In the case of border conflict resolution in tables, the hidden value will unconditionally turn the border off.


The borders below are displayed with the rule that generated them.

.none {border-width: thick; border-color: #6699CC; border-style:none;}


.dotted {border-width: thick; border-color: #6699CC; border-style:dotted;}

.dashed {border-width: thick; border-color: #6699CC; border-style:dashed;}

.solid {border-width: thick; border-color: #6699CC; border-style:solid;}

.double {border-width: thick; border-color: #6699CC; border-style:double;}

.groove {border-width: thick; border-color: #6699CC; border-style:groove;}

.ridge {border-width: thick; border-color: #6699CC; border-style:ridge;}

.inset {border-width: thick; border-color: #6699CC; border-style:inset;}

.outset {border-width: thick; border-color: #6699CC; border-style:outset;}

Additional Resources:

Putting Style Sheets in Perspective: border-color
Putting Style Sheets in Perspective: Marginally Speaking
Putting Style Sheets in Perspective: border-width

Up to => Home / Authoring / Style / Sheets / Margins

Guide Keywords Lexicon Site Map Top 100 Tutorials


Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers