CSS: have sibling elements match each others height

I.e. When you have a list of items displayed and layout using flexbox.

1. Parent container element:

.flex-container { display: flex; justify-content: center; flex-wrap: wrap; }

2. Each childen element:

.flex-container section { /*so each element same height as the others*/ display: flex; }

Comments

Popular posts from this blog

Code Wars: Data Reverse (6 kyu)

Code Wars: longest_palindrome (6 kyu)

Code Wars: Find the odd int