How to flex-start items at the beginning of the container using CSS ?
The flex-start value of the justify-content property allows you to place the items at the start of the container. The flex-start indicates the flex-direction while the start indicates the writing-mode direction. The children of the parent container are allowed to align at the start of the parent container or div.
Follow the given steps:
Create an HTML file: Use a div with an id name = “GFG” (as per your choice). Inside it makes three divs.
Create CSS file: Specify the property of the div as
- display: flex;
- flex-direction: row ;
- justify-content: flex-start;
Example: In this example, we will use flex-start to start the items at the beginning.
My Personal Notes arrow_drop_up
Please Login to comment...