Breaking News

New Updates

css_flex - CSS Flexbox: A web developer’s delight to positioning elements

CSS Flexbox: A web developer’s delight to positioning elements


Flex Direction

Flex Wrap

Flex Flow

Justify Content

Align Items

Align Content


Flex Grow

Flex Shrink

Flex Basis


Align Self

Lastly, we have the align-self property which is same as align-items except for the fact the former is applied to the flex-child and the latter is applied to the flex-container/parent. It accepts all the same values as align-items which include the following:

align-self: auto || stretch || flex-start || flex-end || center || baseline;
Due to the fact, that different flex-children in the same container can be assigned differently on the cross axis, it allows to create a highly complex layout. stretch (default): expands the element so that it takes entire height of cross axis flex-start: brings all the elements to the beginning/top of flex parent flex-end: moves all elements to endpoint/bottom of the flex parent center: moves all elements to center of the flex parent baseline: all the elements are aligned based on the baseline of text inside them which might make them look asymmetrical (I do not own copyright to images used in the article. Please contact for removal with a copy of legal document of ownership )

No comments