CSS Tutorials - Properties
Border
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Background Color Demo</title>
<style type="text/css">
<!--
#myFirstLayer {
height: 80px;
border-width: 1px;
border-style: solid;
border-color: #ccc;
}
#mySecondLayer {
height: 80px;
border: 1px solid #ccc;
}
#myThirdLayer {
height: 80px;
border-top: 1px solid #ccc;
border-right: 6px dotted #ccc;
border-bottom: 20px dashed #ccc;
border-left: 20px double #ccc;
}
-->
</style>
</head>
<body>
<div id="myFirstLayer"><p>myFirstLayer</p></div>
<div id="mySecondLayer"><p>mySecondLayer</p></div>
<div id="myThirdLayer"><p>myFourthLayer</p></div>
</body>
</html>
myFirstLayer
mySecondLayer
myThirdLayer