{"id":21208,"date":"2013-04-19T08:22:07","date_gmt":"2013-04-19T15:22:07","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=21208"},"modified":"2018-12-27T12:12:03","modified_gmt":"2018-12-27T19:12:03","slug":"align-self","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/a\/align-self\/","title":{"rendered":"align-self"},"content":{"rendered":"
The It makes possible to override the The The following demo shows how an item can align itself in the flex container depending on the See the Pen align-self demo<\/a> by CSS-Tricks (@css-tricks<\/a>) on CodePen<\/a>.<\/p>\n This browser support data is from Caniuse<\/a>, which has more detail. A number indicates that browser supports the feature at that version and up.<\/p><\/div>align-self<\/code> property is a sub-property of the Flexible Box Layout module<\/a>. <\/p>\n
align-items<\/code> value for specific flex items.<\/p>\n
align-self<\/code> property accepts the same 5 values as the
align-items<\/code>:<\/p>\n
\n
flex-start<\/code>: cross-start margin edge of the item is placed on the cross-start line<\/li>\n
flex-end<\/code>: cross-end margin edge of the item is placed on the cross-end line<\/li>\n
center<\/code>: item is centered in the cross-axis<\/li>\n
baseline<\/code>: items are aligned such as their baseline are aligned <\/li>\n
stretch<\/code> (default): stretch to fill the container (still respect min-width\/max-width)<\/li>\n<\/ul>\n
Syntax<\/h3>\n
align-self: auto | flex-start | flex-end | center | baseline | stretch\r\n\r\n.flex-item {\r\n align-self: flex-end;\r\n}<\/code><\/pre>\n
Demo<\/h3>\n
align-self<\/code> value:<\/p>\n
\n
flex-start<\/code><\/li>\n
flex-end<\/code><\/li>\n
center<\/code><\/li>\n
baseline<\/code><\/li>\n
stretch<\/code><\/li>\n<\/ul>\n
Related Properties<\/h3>\n
\n
Other Resources<\/h3>\n
\n
Browser Support<\/h3>\n
Desktop<\/h4>