CSS kenarlık-sol stili Özellik
Örnek
Sol kenarlık için bir stil belirleyin:
div {border-left-style: dotted;}
Aşağıda daha fazla "Kendiniz Deneyin" örnekleri.
Tanım ve Kullanım
Özellik border-left-style
, bir öğenin sol kenarlığının stilini belirler.
Varsayılan değer: | Yok |
---|---|
Miras: | Hayır |
canlandırılabilir: | Hayır. Canlandırılabilir hakkında bilgi edinin |
Sürüm: | CSS1 |
JavaScript sözdizimi: | nesne .style.borderLeftStyle="noktalı" |
Tarayıcı Desteği
Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.
Property | |||||
---|---|---|---|---|---|
border-left-style | 1.0 | 5.5 | 1.0 | 1.0 | 9.2 |
CSS Sözdizimi
border-left-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
Mülk değerleri
Value | Description | Play it |
---|---|---|
none | Specifies no border. This is default | |
hidden | The same as "none", except in border conflict resolution for table elements | |
dotted | Specifies a dotted border | |
dashed | Specifies a dashed border | |
solid | Specifies a solid border | |
double | Specifies a double border | |
groove | Specifies a 3D grooved border. The effect depends on the border-color value | |
ridge | Specifies a 3D ridged border. The effect depends on the border-color value | |
inset | Specifies a 3D inset border. The effect depends on the border-color value | |
outset | Specifies a 3D outset border. The effect depends on the border-color value | |
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
Kesik bir sol kenarlık:
div {border-left-style: dashed;}
Örnek
Sağlam bir sol kenarlık:
div {border-left-style: solid;}
Örnek
Çift sol kenarlık:
div {border-left-style: double;}
Örnek
Sol kenarlığı kaldırın:
div {border-left-style: none;}
Örnek
Bir oluk sol kenarlık:
div {
border-left-style: groove;
border-left-color: coral;
border-left-width: 7px;
}
Örnek
Bir sırt sol kenarlığı:
div {
border-left-style: ridge;
border-left-color: coral;
border-left-width: 7px;
}
Örnek
Bir iç sol kenarlık:
div {
border-left-style: inset;
border-left-color: coral;
border-left-width: 7px;
}
Örnek
Bir başlangıç sol kenarlığı:
div {
border-left-style: outset;
border-left-color: coral;
border-left-width: 7px;
}
İlgili Sayfalar
CSS eğitimi: CSS Sınırı
CSS referansı: border-sol özelliği
HTML DOM referansı: borderLeftStyle özelliği