Basically, there are two kind of flex elements. Here we can set display: inline-flex. In the live code example below I have items laid out using Flexbox. The initial value for this property is stretch and this is why flex items stretch to the height of the flex container by default. Flexbox Architecture So how does Flexbox architecture work? The default for fxFlexLayoutAlign is start stretch (regardless of whether fxLayout is set to row or column), fxLayoutAlign= start stretch can also be shortened to fxLayoutAlign= start. Before CSS Grid came along, there was Flexbox (which is officially known as the CSS Flexible Box Layout Module). When we describe flexbox as being one dimensional we are describing the fact that flexbox deals with layout in one dimension at a time either as a row or as a column. The flex-direction property applies to the flex container only. However Firefox and IE recognize and scale the children based on percentage heights. It covers flex-grow, flex-shrink, and flex-basis. Like flex-start means top and flex-end means bottom. If we don't change the initial values then flexbox will put that space after the last item. Example .flex-container { display: flex; flex-flow: row wrap; } Try it Yourself The justify-content Property The justify-content property is used to align the flex items: 1 2 3 Example You can see in the live example below how this looks. The live example below allows you to test out the different values of the flex shorthand; remember that the first value is flex-grow. Custom properties (sometimes referred to as CSS variables or cascading variables) are entities defined by CSS authors that contain specific values to be reused throughout a document.They are set using custom property notation (e.g., --main-color: black;) and are accessed using the var() function (e.g., color: var(--main-color);). By the end of this CSS flexbox tutorial, you will be able to use it easily. This is what the flex properties that we apply to the items themselves, will do. two or full-width images, depending on screen size: Use flexbox to create a responsive website, containing a flexible navigation bar and flexible content: Get certifiedby completinga course today! How do I style a