VOOZH about

URL: https://www.geeksforgeeks.org/css/css-border-right-property/

⇱ CSS border-right Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

CSS border-right Property

Last Updated : 23 Aug, 2024

The border-right Property is a shorthand property used for all the three Properties that are given below-

  • border-right-width
  • border-right-style(if required)
  • border-right-color

Syntax:

border-right: border-width border-style border-color|initial|
inherit;

Property Values:

  • border-width border-style border-color:It is used to sets the width, style, and color of an Element's Border.
  • initial: It sets the property to its default value.

Example: In this example, we are using the border-right: border-width border-style border-color property.

Output:

👁 Image

Example: In this example, we are using the border-right:initial; property.

Output:

👁 Image

Supported Browsers: The browser supported by css border-right property are listed below:

  • Google Chrome 1.0
  • Edge 12.0
  • Internet Explorer 5.5
  • Firefox 1.0
  • Opera 9.2
  • Apple Safari 1.0
Comment