I have a problem with Bootstrap columns. I have a row with a column (.col-12). Inside this column I have 2 columns (.col-2), but .col-2 use all width of .col-12.
.container {
//border: 1px solid black;
height: 100vh;
}
.prueba {
height: calc(30%);
//border: 1px solid red;
}
.fila {
height: calc(100%);
//border: 1px solid purple;
}
.col-2 {
height: calc(100%);
border: 1px solid green;
}
<div class="container">
<div class="row prueba">
<div class="col-12 fila">
<div class="col-2"></div>
<div class="col-2"></div>
</div>
</div>
</div>
Why does the .col-2 use all width of .col-12?