CSS align-self Özellik
Örnek
Esnek bir öğenin içindeki öğelerden birinin hizalamalarını ortalayın:
#myBlueDiv
{
align-self: center;
}
Tanım ve Kullanım
Özellik align-self
, esnek kap içinde seçilen öğe için hizalamayı belirtir.
Not: Özellik align-self
, esnek kapsayıcının
hizalama öğeleri özelliğini geçersiz kılar.
Varsayılan değer: | Oto |
---|---|
Miras: | Hayır |
canlandırılabilir: | Hayır. Canlandırılabilir hakkında bilgi edinin |
Sürüm: | CSS3 |
JavaScript sözdizimi: | nesne .style.alignSelf="center" |
Tarayıcı Desteği
Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.
-webkit- tarafından takip edilen sayılar, bir önekle çalışan ilk sürümü belirtir.
Property | |||||
---|---|---|---|---|---|
align-self | 21.0 | 11.0 | 20.0 | 9.0 7.0 -webkit- |
12.1 |
CSS Sözdizimi
align-self: auto|stretch|center|flex-start|flex-end|baseline|initial|inherit;
Mülk değerleri
Value | Description | Play it |
---|---|---|
auto | Default. The element inherits its parent container's align-items property, or "stretch" if it has no parent container | |
stretch | The element is positioned to fit the container | |
center | The element is positioned at the center of the container | |
flex-start | The element is positioned at the beginning of the container | |
flex-end | The element is positioned at the end of the container | |
baseline | The element is positioned at the baseline of the container | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
İlgili Sayfalar
CSS Referansı: hizalama içeriği özelliği
CSS Referansı: hizalama öğeleri özelliği
HTML DOM referansı: alignSelf özelliği