CSS, Grid.
the container of our comic. .comic { position: relative; background-image: url(space.jpg); background-size: cover; background-position: center; overflow: hidden; } The comic consists of five panels each with an image inside. .panels { display: grid; grid-template-columns: 3fr repeat(4, 1fr) 2fr; }