Grid system, calculations

2

Before I start my question, I want to make it clear, I've already seen some related topics.

#, where Guilherme Nascimento explains how media queries works, and the answer that was accepted in the question already explains how to do the calculation, but has a ...

Following the tips of the accepted answer, I tried but I could not, in Bootstrap has the col-md-5 , I tried to reach this result:

.col-md-5   { width: 41.66666667%; }

But I could not, as was the calculation of the grid column MD of Bootstrap ?

    
asked by anonymous 25.10.2017 / 00:19

1 answer

2

The bootstrap default is to split the layout into 12 equal-sized columns. In this case, the 5 in the class name indicates that the element should occupy 5 columns, that is 5/12 which equals 41.66667%.

    
25.10.2017 / 00:23