1
I’m creating an application with multiple columns, each column with multiple labels. On the screen fit approximately 5 columns, at most, after that they start again under the others, like this.
COLUNA1 COLUNA2 COLUNA3 COLUNA4 COLUNA5
COLUNA6 COLUNA7 COLUNA8 COLUNA9 COLUNA10
COLUNA11 ...
I wish that didn’t happen, but that they would always go right, no matter how many I insert, like this.
COLUNA1 COLUNA2 COLUNA3 COLUNA4 COLUNA5 COLUNA6 COLUNA7 COLUNA8 ...
And also insert a vertical scroll bar to see all the columns. In the same way, I need that in each column I insert as many labels as I want, and the column height (with a minimum size) increases according to the number of labels.
My code is like this.
.coluna1 {
margin-left: 5px;
margin-right: 5px;
width: 280px;
height: 600px;
background: rgba(0, 0, 0, 0.19);
float: left;
}
.oportunidade1 {
padding: 10px;
color: black;
background: rgba(69, 164, 255, 0.45);
border: 1px solid #828282;
}
<section class="content">
<div class="colunas-status">
<div class="coluna1">
<div class="oportunidade1">
<i class="material-icons">edit</i>
<p>ID: 4 - R$ 700,00</p>
<p>Rafael MZ</p>
</div>
<div class="oportunidade1">
<i class="material-icons">edit</i>
<p>ID: 4 - R$ 700,00</p>
<p>Rafael MZ</p>
</div>
<div class="oportunidade1">
<i class="material-icons">edit</i>
<p>ID: 4 - R$ 700,00</p>
<p>Rafael MZ</p>
</div>
</div>
<div class="coluna1">
<div class="oportunidade1">
<i class="material-icons">edit</i>
<p>ID: 4 - R$ 700,00</p>
<p>Rafael MZ</p>
</div>
</div>
<div class="coluna1">
<div class="oportunidade1">
<i class="material-icons">edit</i>
<p>ID: 4 - R$ 700,00</p>
<p>Rafael MZ</p>
</div>
</div>
<div class="coluna1">
<div class="oportunidade1">
<i class="material-icons">edit</i>
<p>ID: 4 - R$ 700,00</p>
<p>Rafael MZ</p>
</div>
</div>
</div>
</section>