T
T
trevoga_su2015-05-16 22:23:22
css
trevoga_su, 2015-05-16 22:23:22

How to make 3 columns with flex if the two outermost ones should be fixed?

Hi all.
Tried using flex to make 3 columns.
The two outermost ones should be of fixed width, the central one - 100%.
Has anyone done similar?
Stretching the center column does not work in any way.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2015-05-16
@trevoga_su

Set the center column:

-ms-flex: 1 1 0.000000001px;
-webkit-flex: 1;
flex: 1;
-webkit-flex-basis: 0.000000001px;
flex-basis: 0.000000001px;

This is taking into account vendor prefixes - it will stretch to all the free space.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question