asked on
ASKER
<div id="divContents">
<div class="divBox">01</div>
<div class="divBox">02</div>
<div class="divBox">03</div>
<div class="divBox">04</div>
<div class="divBox">05</div>
<div class="divBox">06</div>
<div class="divBox">07</div>
<div class="divBox">0<br/>0<br/>0<br/>0</div>
<div class="divBox">09</div>
<div class="divBox">10</div>
<div class="divBox">11</div>
</div>
CSS#divContents {
min-width: 200px;
height: 400px;
background-color:cyan;
display: flex;
flex-direction: column;
flex-wrap: wrap;
}
.divBox {
flex: 1 1 calc(33.333333% - 50px);
margin-left: 25px;
margin-right: 25px;
min-height: 40px;
background-color:rgba(25,25,25,0.3);
padding: 5px;
}
.divBox:nth-child(3) {
height:200px;
}
.divBox:nth-child(2) {
height:100px;
}
ASKER
Cascading Style Sheets (CSS) is a language used for describing the look and formatting of a document written in a markup language. Usually used to change web pages and user interfaces written in HTML, it can also be applied to any kind of XML document. CSS is designed primarily to distinguish the content of a document from its presentation.
TRUSTED BY
Float will pull the element either to the left (float: left) or to the right (float: right) of the parent element.
If you have multiple elements floated then they will sit side by side stacked left to right in a case of float: left and in reverse order when you float right.
Floats are not used much now that we have the Flexbox model though - so maybe give us an idea of what it is you are trying to do.