Tutorials Point


  CSS Home

  CSS Reference
  Pseudo Classes & Elements

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

CSS - border-right


previous next AddThis Social Bookmark Button


Advertisements

Description:

Sets an element's right border; value is one or more of a color, a value for border-right-width, and a value for border-style

Possible Values:

Possible value is one or more of a color, a value for border-width, and a value for border-style.

Applies to:

All the HTML elements.

DOM Syntax:

object.style.borderRight="2px solid red";

Example:

The border-right property allows you to specify color, style, and width of top lines in one property:

Following is the example to show to use all the three properties into a single property.

<p style="border-right:4px solid red;">
This example is showing shorthand property for border-right.
</p>

This will produce following result:

This example is showing shorthand property for border-right.

To Become more comfortable - Do Online Practice



previous next Printer Friendly

Advertisements


  

Advertisements