CSS2 » Properties » border

Version: Level 1

Compability:  IE4+  N4+

Syntax:
border : border-width &| border-style &| border-color

The border property allows you to combine into one declaration the border-width, and/or the border-style, and/or the border-color properties. This property is not inherited.

Each of these three individual properties are discussed on their own page.

Examples

Code:
body { border: thick dashed yellow; }
p { border: thick double yellow; }
blockquote { border: dotted gray; }
Language(s): CSS2
Code:
p.bordr { border: 25px solid red; }
...
<p class="bordr">
DevGuru is great!
</p>
Output:

DevGuru is great!

Language(s): CSS2

See Also: