Four shorthand properties can be specified for border-width : border width « CSS « HTML / CSS

Four shorthand properties can be specified for border-width


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns='' xml:lang='en'>
        <style rel='stylesheet' type='text/css'>
div#shorthand-sides {
    border-top: 1px solid pink;
    border-right: 1px solid crimson;
    border-bottom: 1px solid pink;
    border-left: 1px solid crimson;
    padding: 5px;
        <div id='shorthand-sides'>
            border-top, border-right, border-bottom, border-left


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: thin;
18.border-width: thick;
19.border width
20.border width border style shorthand four values
21.border width border style shorthand one value
22.border width border style shorthand three values
23.border width border style shorthand two values
24.border width left
25.The border-width property can take either one of three keywords or a length value.
26.border-width: thin medium thick 3px
27.border-width: 5px 6px 7px 8px