DEV Community

Cover image for Simple guide of Flexbox in Real Life🔥Part #2
Kevin Coto🚀💡
Kevin Coto🚀💡

Posted on

1

Simple guide of Flexbox in Real Life🔥Part #2

If you have come until here you are prepared for working with Flexbox in real projects, but first read all this article.

An interesting property: wrap

First, we let's talk about the wrap, wrap is so useful property to defined If our items it adjusting in one line or allow the items to wrap as needed with this property.

It has 3 properties:

nowrap (default): all flex items will be on one line
wrap: flex items will wrap onto multiple lines, from top to bottom.
wrap-reverse: flex items will wrap onto multiple lines from bottom to top.

A combination between wrap and flex-direction: flow

If you needed use flex-direction and wrap in the same element, so flow is your solution to save your time and create more clarity and professional code

This is an example of how use this property:

.div {
flex-flow: column wrap;
}

I know that you are waiting for more property but I'm sorry it does not have more so important properties, If you want to read more about all flexbox properties clicking this URL, sorry it's a monetizable URL with them I pay my tomatoes

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

đź‘‹ Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay