CSS border Property

Last Updated Jul 21, 2015, 12:00:06 PM

CSS border Property

CSS border property is used to set the css border in single declaration.

The CSS border property is a shorthand property for setting the individual border property values in a single declaration. Border can be used to set the values for one or more of: border-width, border-style, border-color.


Default value medium is used if absent. See border-width.


Default value none is used if absent. See border-style.


A <color> denoting the color of the border. If not set, its default value is the value of the element's color property (the text color, not the background color). See border-color.
Try It Now

Other CSS Border Properties you might want to learn

CSS border Property

CSS border-bottom Property

CSS border-bottom-style Property

CSS border-left Property

CSS border-left-color Property

CSS border-left-style Property

CSS border-left-width Property

CSS border-right Property

CSS border-right-color Property

CSS border-right-style Property

CSS border-top Property

CSS border-top-color Property

CSS border-top-style Property

CSS border-top-width Property

Sources and Credits

The source of the content has been referred and updated with Mozilla Foundation and W3C Organization

Last Updated Jul 21, 2015, 12:00:06 PM