Diffrient types of justify-content properties in CSS:
1)normal : "Normal-alignment."
2)space-between : "Distribute items evenly The first item is flush with the
"start,the last is flush with the end."
3)space-around : "Distribute items evenly Items have a half-size space.
4)space-evenly : "Distribute items evenly Items have equal space around them.
5)stretch : "Distribute items evenly Stretch 'auto'-sized items to fit.
6)center : "Pack items around the center
7)flex-start : "Pack flex items from the start
8)flex-end : "Pack flex items from the end
9)more... ('upvote please!')
display:
> flex <!-- Creates a flex-box container. Items in this container
become flex-box items. Useful for laying out elements in a single
row or column responsively. These items can have the following declerations
applied to them: -->
flex-direction: determines which direction is the main axis
> row <!-- Main axis is left to right -->
> row-reversed <!-- Main axis is right to left -->
> column <!-- Main axis is top to bottom -->
> column-reversed <!-- Main axis is bottom to bottom -->
flex-wrap: wraps content in flexcontainer if necessary
> nowrap (default)
> wrap
flex-flow: specifies both flex-direction and flex-wrap
> ex = flex-flow: row wrap
justify-content: determines how elements are positioned along main axis (again, main axis is set by flex direction)
> flex-start <!-- This is affected accordingly if main axis is reversed -->
> flex-end <!-- This is affected accordingly if main axis is reversed -->
> center
> etc.
align-items: determines how elements are positioned along the non main axis, the cross axis (again, main axis is set by flex direction)
> flex-start <!-- This is affected accordingly if main axis is reversed -->
> flex-end <!-- This is affected accordingly if main axis is reversed -->
> center
> etc.
> Note, align-items has a different meaning if display from above is NOT set to flex and is set to grid, ie (display: grid)
When items are wraped, you use flex-content to change how rows are positioned to each other
align-content:
> center
> space-between
> space-around
> etc.
Code Example |
---|
Css :: div inline grid 100% width |
Css :: width not responding to css in table |
Css :: background image |
Css :: css img src |
Css :: list decoration none |
Css :: arrow left css |
Css :: nodelist map |
Css :: Bootstrap default accordion arrow icon change |
Css :: sass vs scss |
Css :: better transition timing functions |
Css :: twig date modify |
Css :: how to use image zoom effect in css |
Css :: css hsla |
Css :: media query for mobile min and max width both |
Css :: css remove second element |
Css :: css z index |
Css :: css not full width |
Css :: how to center a list in html |
Css :: css put background on top of another background image |
Css :: css move inline image up |
Css :: css shrink image |
Css :: css absolute position inside div |
Css :: grid repeat css |
Css :: bulma uppercase |
Css :: set min div height |
Css :: simple css reset |
Css :: change order columns bootstrap |
Css :: flex box writing sideways text top to bottom |
Css :: css grid column |
Css :: css make ul on multiple lines |