CSS: border
Description
The border property is a shorthand property for setting all properties of the four border sides in one declaration. The border property is not inherited
Attributes
border-width: Sets the width of the four borders.
border-style: Sets the style of the four borders.
border-color: Sets the color of the four borders.
Examples
CSS:
p {border: 1px solid #000;}
XHTML:
<p>This paragraph has a border around it.</p>
CSS:
.border {border: 2px dashed #369;}
XHTML:
<p>This paragraph has a class of 'border' and has a dashed border around it.</p>
Source: W3Schools - CSS Border Properties
Comments (0)
You don't have permission to comment on this page.