border-width: thin; : border width « CSS « HTML / CSS

border-width: thin;


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns='' xml:lang='en'>
<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;

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


Related examples in the same category

1.'border-width' Example
2.border-width: thin
3.border-width: medium
4.border-width: thick
5.Border width with four values
6.Border width with three values
7.Border width with two values
8.Border width with one value
9.border width: thin solid black
10.border width: medium solid black
11.border width: thick solid black
12.border-width: thin medium 30px thick;
13.border-width: thin medium thick;
14.border width shorthand with three values
15.border-width: thin thick;
16.border width shorthand with two values
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