CSS: border | css border width
ThisCSStutorialexplainshowtousetheCSSpropertycalledborder-widthwithsyntaxandexamples.DescriptionTheCSSborder-widthpropertydefinestheborderwidthofabox.SyntaxTheCSSborder-widthpropertycanbeexpressedwithone,two,threeorfourvaluesprovided.Syntax-OneValueThesyntaxfortheCSSborder-widthproperty(with1value)is:border-width:all;Whenonesinglevalueisprovided,theborder-widthvaluewillapplytoallfoursidesofthebox(ie:top,right,bottom,left).Syntax-TwoValuesThesyntaxfortheCSSborder-widthproperty(with2values)is:...
This CSS tutorial explains how to use the CSS property called border-width with syntax and examples.
DescriptionThe CSS border-width property defines the border width of a box.
SyntaxThe CSS border-width property can be expressed with one, two, three or four values provided.
Syntax - One ValueThe syntax for the CSS border-width property (with 1 value) is:
border-width: all;When one single value is provided, the border-width value will apply to all four sides of the box (ie: top, right, bottom, left).
Syntax - Two ValuesThe syntax for the CSS border-width property (with 2 values) is:
border-width: top_bottom left_right;When two values are provided, the first value will apply to the top and bottom of the box. The second value will apply to the left and right sides of the box.
Syntax - Three ValuesThe syntax for the CSS border-width property (with 3 values) is:
border-width: top right...