PROPERTY: border-top-width

border-top-width : thin | medium | thick | length
 
Compatibility:  IE4+  N4+
Version: Level 1
Inherited: No
 
The border-top-width property sets the width of the top border.
 
thin | medium | thick
 
The keyword values of thin, medium, or thick can be used to set the width of the border line. The exact thickness of the border created by using these keyword values will be determined by your computer/browser combination.
 
length
 
The length value can be in any of the following seven units. Use the abbreviation.
 
Length Abbrev.
centimeters cm
ems em
inches in
millimeters mm
picas pc
pixels px
points pt

 
Code:
body { border-top-width: thick; }
body { border-top-width: 0.25in; }
body { border-top-width: 5mm; }

 
or
 
p.bordr
{
border-bottom-color: red; border-bottom-style: double; border-bottom-width: 15px;
border-left-color: yellow; border-left-style: double; border-left-width: 15px;
border-right-color: blue; border-right-style: double; border-right-width: 15px;
border-top-color: green; border-top-style: double; border-top-width: 15px;
}
...
<p class="bordr">
<b>DevGuru is great!</b>
</p>

 
Output:

DevGuru is great!



Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information