How to set frame Line Color by css
This article mainly shows you "css how to set frame color", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "css how to set frame color" this article.
Css set frame color method: 1, use border attribute, syntax "border: color value;"; 2, use border-color attribute, syntax "border-color: color value;". Color values can be defined using color names, hexadecimal values, RGB or RGBA, HSL, and so on.
The operating environment of this tutorial: windows7 system, CSS3&&HTML5 version, Dell G3 computer.
Method 1: use the border attribute
Div {margin: 10px; border:solid # FFC0CB;} Test text
Effect picture:
Method 2:border-color attribute
The border-color property is used to set the color of the four borders.
Div {margin: 10px; border:solid; border-color: bisque;} Test text
Effect picture:
You can set color values in the following ways:
Name-specify a color name, such as "red"
HEX-specify a hexadecimal value, such as "# ff0000"
RGB-specify a RGB value, such as "rgb (255J. 0J. 0)"
HSL-specify a HSL value, such as "hsl (0,100%, 50%)"
Transparent
The above is all the content of the article "how to set frame Line Color in css". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!