+ 1
How to add a border colour
5 Respuestas
+ 3
Using border-color property you can set the color of four borders.
Note: Always declare the border-style property before the border-color property. An element must have borders before you can change the color
Examples:
border-color: red green blue pink;
top border is red, right border is green, bottom border is blue and left border is pink
border-color:red green blue;
top border is red, right and left borders are green and bottom border is blue
border-color:red green;
top and bottom borders are red, right and left borders are green
border-color:red;
all four borders are red.
You can also try this way:
border-left-color, border-top-color, border-right-color and border-bottom-color
+ 2
thank you
0
border style?? what is a border style
0
It is also a property.
Example:
p {
border-style: solid;
border-color: #ff0000 #0000ff;
}
- 1
for border colour, you need to learn CSS...
p{
border: 2px solid green;
}
or
p{
border-style: solid;
border-color: green;
}