Version: Level 1
Compability: IE4+ N4+
| Length | Abbrev. |
|---|---|
| centimeters | cm |
| ems | em |
| inches | in |
| millimeters | mm |
| picas | pc |
| pixels | px |
| points | pt |
The border-width property allows you to set the width of all four borders with only one declaration. This property is not inherited.
If you declare one width, all four borders will be that width.
You can declare one, two, three or four widths:
If you declare two widths, the top and bottom borders will be the first width, the right and left borders will be the second width.
If you declare three widths, the top border will be the first, the right border the second, and the bottom and left borders the third width.
If you declare four widths, the order is top, right, bottom, left.
body { border-width: thick; }
body { border-width: 0.25in; }
body { border-width: 5mm; }p.bordr
{
border-color: red red red red;
border-style: solid solid solid solid;
border-width: 30px 30px 30px 30px;
}
...
<p class="bordr">
DevGuru is great!
</p>
DevGuru is great!