DEV Community

Kaviya R
Kaviya R

Posted on

3 1 1 1

HTML LEARNING-6

flex:

Flex is used to display the block level element in inline.Its used in different forms by learning the flex in css we can easily style the element.

Flex-direction:

The default flex direction is always row.If the main axis of the flex-direction is row means we should use the justify-content and for opposite direction we can use the align-items.

Justify-content:

  • flex-start:Its used to align items in the container in the first
  • flex-end:Align items in the end of the container
  • Center:Align items in center
  • Space-between:It align the items evenly,with the first item in the start and last item in the end.
  • Space-around:It spread items with evenly space around them.
  • space-evenly:Items are spaced evenly,with equal space between them.

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

Best practices for optimal infrastructure performance with Magento

Running a Magento store? Struggling with performance bottlenecks? Join us and get actionable insights and real-world strategies to keep your store fast and reliable.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️