CSS font-streç Özellik
Örnek
<div> öğelerindeki metni daha geniş yapın:
div
{
font-family: sans-serif, "Helvetica Neue", "Lucida Grande", Arial;
font-stretch: expanded;
}
Tanım ve Kullanım
Özellik font-stretch
, metni daha dar (yoğunlaştırılmış) veya daha geniş (genişletilmiş) yapmanıza olanak tanır.
Not: Bazı yazı tipleri ek yüzler sağlar; sıkıştırılmış yüzler ve genişletilmiş yüzler. Bu fontlar font-stretch
için normal, yoğun veya genişletilmiş bir font yüzü seçmek için özelliği kullanabilirsiniz.
Not: Seçilen yazı tipi sıkıştırılmış veya genişletilmiş yüzler sunmuyorsa bu özelliğin hiçbir etkisi yoktur!
Varsayılan değer: | normal |
---|---|
Miras: | Evet |
canlandırılabilir: | Evet. Canlandırılabilir hakkında bilgi edinin |
Sürüm: | CSS3 |
JavaScript sözdizimi: | nesne .style.fontStretch="genişletilmiş" |
Tarayıcı Desteği
Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.
Property | |||||
---|---|---|---|---|---|
font-stretch | 48.0 | 9.0 | 9.0 | 11.0 | 35.0 |
Sözdizimi
font-stretch: ultra-condensed|extra-condensed|condensed|semi-condensed|normal|semi-expanded|expanded|extra-expanded|ultra-expanded|initial|inherit;
Mülk değerleri
Value | Description |
---|---|
ultra-condensed | Makes the text as narrow as it gets |
extra-condensed | Makes the text narrower than condensed, but not as narrow as ultra-condensed |
condensed | Makes the text narrower than semi-condensed, but not as narrow as extra-condensed |
semi-condensed | Makes the text narrower than normal, but not as narrow as condensed |
normal | Default value. No font stretching |
semi-expanded | Makes the text wider than normal, but not as wide as expanded |
expanded | Makes the text wider than semi-expanded, but not as wide as extra-expanded |
extra-expanded | Makes the text wider than expanded, but not as wide as ultra-expanded |
ultra-expanded | Makes the text as wide as it gets |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |