E
E
expp2020-07-31 22:11:41
css
expp, 2020-07-31 22:11:41

How to make one flex item bigger than others?

There is a flex container with three elements. It is necessary to make one element wide, and the other two are less wide and the same in width. An example is shown below.

5f246cd52fc55259054776.png

How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FODD, 2020-07-31
@expp

Yab did this on grids, there are convenient functions for such placement.
Specifically on flex, play around with flex-grow on each element. I suspect that it will be enough to specify flex-grow: 1 for small tiles and 2 for large ones

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question