Using flexbox it only takes two rules to create even height columns in CSS, even if your content is different for each of them:
.columns {
display: flex;
.column {
flex: 1;
}
}
Copied to clipboard!
There are also other ways to achieve the same effect. For example, by using grid, again, you need two rules:
.columns {
display: grid;
grid-auto-flow: column;
}
Copied to clipboard!
And the same can be done using tables as well:
.columns {
display: table;
.column {
display: table-cell;
}
}
Copied to clipboard!

Resource
Remove ads๐ Get access to exclusive content
Want to get access to exclusive content? Support webtips with the price of a coffee to get access to tips, checklists, cheatsheets, and much more. โ
Get access