28
loading...
This website collects cookies to deliver better user experience
flex container
and second one is flex items
. Flex container is the wrapper of flex items and Flex items are the layout elements.<section>
<article>
<p>lorem ipsum dolor ip somet</p>
</article>
<article>
<p>lorem ipsum dolor ip somet</p>
</article>
<article>
<p>lorem ipsum dolor ip somet</p>
</article>
</section>
display: flex;
flex-direction: row;
flex-wrap: wrap
flex-flow: column wrap
section{
display: flex;
justify-content: center;
flex-flow: row wrap;
}
align-items: center
with the above code.justify-content
properties: space-around, space-between, flex-start and flex-endalign-items
properties: _center, flex-start, flex-end, stretch, baselineflex-grow
propertyflex-shrink
flex-basis
article {
flex: 1 200px;
}
article:nth-of-type(3) {
flex: 2 200px;
}
align-items
property that is used in the flex container, align-self
overrides the align-items
property.align-self
is specified in the flex items.align-self: flex-end;
article:first-child{
order:1
}