C
C
comoket2021-07-23 13:38:44
css
comoket, 2021-07-23 13:38:44

Why is this code in bootstrap columns?

Trying to understand why bootstrap for each column

.col-lg-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
}

uses the default flex-grow string and so 0 , just like flex-basis auto flex-shrink is overridden from the default 1 to 0 . But that doesn't seem to make sense, because the width of the columns is set as a percentage, and the .row container is set to flex-wrap: wrap . This means that there will be no situation when the columns will shrink less than the set width . flex: 0 0 auto;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sashabeep, 2021-07-27
@sashabeep

Default values ​​in browsers - it's written on the water with a pitchfork. Plus, the cell class can be not only for something nested in .row, but can generally be set programmatically on the fly, and it’s not a fact that the correct values ​​will be inherited from the parent. Well, computed styles are an interesting thing.
60ffc673f0526260715556.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question