|
Full method:
.yourclassname {
border-top-width: 2px;
border-right-width: 2px;
border-bottom-width: 2px;
border-left-width: 2px;
border-color: #0000CC #0000CC #0000CC #0000CC;
border-style: solid;
}
Shorthand method:
.yourclassname {
border: 2px #0000CC solid;
}
|
border-width:
em, px, pt (others are available but not within the scope of this
tutorial)
Note: We recommend using "px" (pixels) for most web sites
so your pages will appear on the majority of browsers as you intended.
border-style:
none, dotted, dashed, solid, double, groove, ridge, inset, outset
border-color:
Note: We recommend using the six-digit RGB (red, green blue) hex
color code unless you are familiar with other ways of stating color
values (which is also beyond the scope of this tutorial).
Examples:
#RRGGBB (#0000CC)
#RGB (#00C)
RGB (0,0,204)
RGB (0%,0%,80%)
|