Website Tutorials
Recipes
Entertainment Reviews
Home Remedies
Game Codes and Cheats
CSS Coding Tutorials | Submited Jan 16, 2008
Written by: Mr. Evil [BOFH]
Notes
border-styles
none | hidden | dotted
dashed | solid | double
groove | ridge |inset
outset
Note
When using dotted, anything less than 3px won't work.
Border-widths
border-width:medium;
border-width:3px;
Note
Thin = 1px
Medium = 3px
Thick = 5px
Border-colors
border:2px solid #FF0000;
border:2px solid red;
border-color:#FF0000;
border-color:red;
Selective borders
border-top:2px solid #ff0000;
border-left:3px dashed #999999;
border-bottom:4px dotted #000000;
border-right:5px double #333333;
Note
in order::.
top left bottom right
border-width:2px 3px 4px 5px;
border-color:#ff0000 #333333 #999999 #ffffff;
border-style: solid dashed dotted ridged;
More
border-top-width:2px;
border-left-width:3px;
border-bottom-width:4px;
border-right-width:5px;
border-top-color:#ff0000;
border-left-color:#333333;
border-bottom-color:999999;
border-right-color:#ffffff;
border-top-style:solid;
border-left-style:dashed;
border-bottom-style:dotted;
border-right-style:ridged;
border-top:2px solid #ff0000;
border-left:3px dashed #333333;
border-bottom:4px dotted #999999;
border-right:5px ridged #ffffff;
Rounded borders
-moz-border-radius:10px;