Interactive online courses HTML Academy
2026-03-09 10:59 Diff

One of the more interesting challenges of creating a layout is: how can we lay out columns that stretch downward so that they are the same height without using tables? This problem is related to the behavioral features of the block model, and it is illustrated in the images below:

There are several techniques for solving this problem, which are described in this article. By the way, we also borrowed these images from that article.

Let’s apply a gradient trick with sharp transitions that simulate stretched columns. Backgrounds that utilize these types of gradients are usually placed in a container of columns. The proportions of the gradients are selected to match the proportions of the columns so that they stretch the same.

The effect shown in the assignment can be more easily achieved with flexboxes.