|
The outline-color property sets the colour of the outline. To set a colour, you specify a named colour, a hexadecimal RGB value, or an RGB colour value: button {outline-color: blue;} button {outline-color: #6633FF;} The named colours are:
There aren't very many of them but the colours will work on all machines. You can also use:
If you supply percentages or integers, you must enter the keyword rgb and put parentheses around the three values that you separate with commas. You can also use invert to invert the colour of pixels on the screen. This is to make sure that the border is visible no matter what the background colour is. |
More information outline-color |