div content in row html css code example
Example 1: inline block align center
.parent {
display: flex;
justify-content: center;
align-items: center;
}
.child {
display: inline-block;
}
Example 2: put divs in rows and colums
//html
<div class="Row">
<div class="Column">C1</div>
<div class="Column">C2</div>
<div class="Column">C3</div>
</div>
//css
.Row {
display: table;
width: 100%; /*Optional*/
table-layout: fixed; /*Optional*/
border-spacing: 10px; /*Optional*/
}
.Column {
display: table-cell;
background-color: red; /*Optional*/
}