border-width: medium : border width « CSS « HTML / CSS






border-width: medium

   
<!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-width</title>
        <style rel='stylesheet' type='text/css'>
div {
    padding: 3px;
    border-color: black;
    border-style: solid;
    background: mistyrose;
    margin: 5px;
}
div#medium {
    border-width: medium;
}   
        </style>
    </head>
    <body>
        <div id='medium'>medium</div>

    </body>
</html>

   
    
  








Related examples in the same category

1.'border-width' Example
2.border-width: thin
3.border-width: thick
4.Border width with four values
5.Border width with three values
6.Border width with two values
7.Border width with one value
8.border width: thin solid black
9.border width: medium solid black
10.border width: thick solid black
11.border-width: thin medium 30px thick;
12.border-width: thin medium thick;
13.border width shorthand with three values
14.border-width: thin thick;
15.border width shorthand with two values
16.border-width: thin;
17.border-width: thick;
18.border width
19.border width border style shorthand four values
20.border width border style shorthand one value
21.border width border style shorthand three values
22.border width border style shorthand two values
23.border width left
24.The border-width property can take either one of three keywords or a length value.
25.Four shorthand properties can be specified for border-width
26.border-width: thin medium thick 3px
27.border-width: 5px 6px 7px 8px