border-color: red; : border color « CSS « HTML / CSS






border-color: red;

   
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
    <head>
        <title>border</title>
<style type='text/css'>
body {
    font: 12px sans-serif;
}
div#border-width {
    overflow: hidden;
}
div#border-width div {
    float: left;
    border-style: solid;
    border-color: red;
    margin: 0 5px;
}
div#thin {
    border-width: thin;
}
div#medium {
    border-width: medium;
}
div#thick {
    border-width: thick;
}
</style>


    </head>
    <body>
        <p>
            The border-width property can take either one of three keywords or a
            length value.
        </p>
        <div id='border-width'>
            <div id='thin'>thin</div>
            <div id='medium'>medium</div>
            <div id='thick'>thick</div>
        </div>
    </body>
</html>

   
    
    
  








Related examples in the same category

1.You can individually change the color of the bottom, left, top and right sides of a box's border using the properties:
2.'border-color' Example
3.border-color: blue
4.border-color: black