AdBlock Detected!
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.
CSS Border-Style Property |
The border-color property defines the color of the border. This property takes values in the following forms:
Both RGB and HSL use three numbers to determine the color. RGBa and HSLa add a fourth number to indicate the level of transparency, with 0 being fully transparent, and 1 being fully opaque. The syntax for the border-color property is as follows: Transparent: {border-color: transparent;} Hexadecimal code: {border-color: #XXXXXX;} where XXXXXX is a hexadecimal code. Color name: {border-color: [color_name];} where color_name denotes the name of the color in plain English. RGB: {border-color: rgb (X, Y, Z); } where X, Y, and Z are numbers between 0 and 255.
RGBa: {border-color: rgba (X, Y, Z, A); } where X, Y, and Z are numbers between 0 and 255, and A is a number between 0 and 1.
HSL: {border-color: hsl (X, Y%, Z%); } where X is a number between 0 and 360, Y and Z are numbers between 0 and 100. HSLa: {border-color: hsla (X, Y%, Z%, A); } where X is a number between 0 and 360, Y and Z are numbers between 0 and 100, and A is a number between 0 and 1. The default border-color value is black. The border-color property itself is a short hand for the following properties:
There can be one, two, three, or four values set for the border-color property. The rules are as follows:
CSS Declaration
which results in the following: In Example 1, three border colors are defined. So the first color (red) applies to the top border, the second color (green) applies to the left and right borders, and the third color (blue) applies to the bottom border. |
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.