CSS border-sol-color Özellik
Örnek
Sol kenarlık için bir renk belirleyin:
div {border-left-color: coral;}
Aşağıda daha fazla "Kendiniz Deneyin" örnekleri.
Tanım ve Kullanım
Özellik border-left-color
, bir öğenin sol kenarlığının rengini ayarlar.
Not: Her zaman
özellikten önce border-style veya
border-left-styleborder-left-color
özelliğini tanımlayın. Rengi değiştirebilmeniz için bir öğenin kenarlığı olmalıdır.
Varsayılan değer: | Öğenin geçerli rengi |
---|---|
Miras: | Hayır |
canlandırılabilir: | Evet. Canlandırılabilir hakkında bilgi edinin |
Sürüm: | CSS1 |
JavaScript sözdizimi: | nesne .style.borderLeftColor="mavi" |
Tarayıcı Desteği
Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.
Property | |||||
---|---|---|---|---|---|
border-left-color | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
CSS Sözdizimi
border-left-color: color|transparent|initial|inherit;
Mülk değerleri
Value | Description | Play it |
---|---|---|
color | Specifies the color of the left border. Look at CSS Color Values for a complete list of possible color values. Default color is the current color of the element | |
transparent | Specifies that the border color should be transparent | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Daha fazla örnek
Örnek
HEX değeriyle sol kenarlık için bir renk belirleyin:
div {border-left-color: #92a8d1;}
Örnek
RGB değeriyle sol kenarlık için bir renk belirleyin:
div {border-left-color: rgb(201, 76, 76);}
Örnek
RGBA değerine sahip sol kenarlık için bir renk ayarlayın:
div {border-left-color: rgba(201, 76, 76, 0.3);}
Örnek
HSL değeriyle sol kenarlık için bir renk belirleyin:
div {border-left-color: hsl(89, 43%, 51%);}
Örnek
HSLA değerine sahip sol kenarlık için bir renk belirleyin:
div {border-left-color: hsla(89, 43%, 51%, 0.3);}
Örnek
Şeffaf bir sol kenarlık ayarlayın:
div {border-left-color: transparent;}
İlgili Sayfalar
CSS eğitimi: CSS Sınırı
CSS referansı: border-sol özelliği
HTML DOM referansı: borderLeftColor özelliği