Keret jellemzői: border-color CSS jellemző tulajdonságai

Border-color

Határok színe
Sorrend: felső, jobb, alsó, bal.

Declares the border color of all four borders at once.
Lehetséges értékek:
Szín neve vagy kódja
Valid color names, RGB values, hexidecimal notation, or the predefined value transparent.

Separate the color for each border by a space, declaring the colors for the borders in the following order:

border-top-color
border-right-color
border-bottom-color
border-left-color

Undeclared values work as further shorthand notation. If only one color value is declared, all four borders will use that color. If two colors are declared, the top and bottom borders will use the first color while the right and left borders will use the second color. If three colors are declared, the top border will use the first color, the right and left borders will use the second color, and the bottom border will use the third color.

[ <color> | transparent ]{1,4} | inherit

Border-color minták, példák:

div { border-color:green red blue olive; }

div { border-color:green; }

div { border-color:green red; }

div { border-color:green red blue; }


border-color: red green #ABCD34 blue;
Alapértelmezett érték: nincs
Öröklődő tulajdonság: nem
Media besorolás: visual
Csoport besorolás: keret jellemzői

Kompatibilitás: CSS 1, CSS 2, CSS 2.1, CSS 3,

További keret jellemzői:

border-top-color border-top-style border-top-width border-top border-right-color border-right-style border-right-width border-right border-bottom-color border-bottom-style border-bottom-width border-bottom border-left-color border-left-style border-left-width border-left border-style border-width border

Border-color CSS tulajdonságok, referencia

Webdesign