CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

Border in CSS

The border Property



The CSS border property allows you to add or customize the border of the given element. For adding a border, you need to specify its width, color, and style. There are different ways to add borders. One way is by simply a border property where we can specify its width, style, and color. The other method is to doing everything separately i.e, border-width, border-style, and border-color.




Its syntax is:-

< style >


border: border-width border-style border-color;


< /style >


Further Explanation:-


Value Description
border-width Specifies the width of the border.
border-style Specifies the style of the border.
border-color Specifies the color of the border.
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Advance

All Sections related to CSS