Hi all, I’ve got a layout issue that’s got me scratching my head for days, and I can’t work out how to solve it.
What I need to do is create a section with 6 tout boxes, each with a hexagon-shaped background. The layout needs to look like this:
At larger viewport sizes the grid will be 3x2 as per the illustration, moving to 2x3 for midsize viewports and 1x6 for the smallest viewport.
The hexagons need to maintain their shape at all viewport sizes, and the text needs to stay within the hexagon shape boundary.
I tried using an image as a background within a column, but since I cannot force a column to have a particular aspect ratio regardless of viewport size, the background image gets masked-out at certain viewports. Also, the icon and text overflows outside of the hexagon shape at mobile viewport sizes.
I tried to add the shape as CSS instead, such as how it’s explained here, but the hexagon gets broken if I add the class to the column. I tried playing around with Custom Attributes, but without any luck.
Any advice would be greatly appreciated.