

Items will wrap onto multiple lines, from bottom to top.But we have the last item following the space-between property and positoning itself to the edge of the container, you most probably want that last item aligned in the center, what we can do is use the after pseudo selector and add in some blank content after the container set the same size as the list item.

Items will wrap onto multiple lines, from top to bottom. Items are stretched to fill the container. Items are aligned so that their baselines align. Items are packed toward the end on the cross axis. Items are packed toward the start on the cross axis. Items are distributed so that the spacing between any two items is equal. Items are evenly distributed on the main axis. Items are evenly distributed on the main axis with equal space around them. Items are packed toward the end on the main axis. Items are packed toward the start on the main axis. Breaks lines as necessary to fill line boxes.Ĭollapses whitespace as for normal, but suppresses line breaks (text wrapping) within text. CSS Flexbox and CSS Grid are fantastic tools available for managing layout on the Web. Newline characters in the source are handled as other whitespace. Text should be spaced to line up its left and right edges to the left and right edges of the line box, except for the last line.

The inline contents are centered within the line box. The same as text-right if direction is left-to-right and text-left if direction is right-to-left. The same as text-left if direction is left-to-right and text-right if direction is right-to-left. The inline contents are aligned to the right edge of the line box. The inline contents are aligned to the left edge of the line box. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
