Sept. 20, 1998

Putting Style Sheets in Perspective

border-property

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

The border-property cannot specify different values for the four different sides, it can only specify equal values.. If you need/want different values on the four sides you will need to use border-color, border-width and/or border-style.

.border
  { border: thin solid red; }
is the same as:
.border { border-width	: thin;
	border-style	: solid;
	border-color	: red;
	}

Borders may be set using the 'shorthand' border property.
DIV.alert { border: solid red;
	}	

Additional Resources:

Putting Style Sheets in Perspective: border-width Shorthand
Putting Style Sheets in Perspective: Marginally Speaking
Putting Style Sheets in Perspective: margin-property

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, & Permissions, Privacy Policy.

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