Answers for "put divs in rows and colums"

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*/
}
Posted by: Guest on May-27-2020

Code answers related to "put divs in rows and colums"

Browse Popular Code Answers by Language