Task one

Alternate solutions

There are 2 solution's for making the boxes all match height, CSS using min-height or display: flex; which has its cons / and some lack of cross-browser support or a JS solution which is what I have used here in this example (adjusts with resizing as well) but with a min-height fallback for non-js but now days that is very unlikely.

Task two