Hi,
I’m working with the CSS Grid element inside Cornerstone. I’m very new to the element.
Here’s a sample layout:
- grid-template-columns: 20% 30% 30% 20%
- grid-template-rows: repeat(4, 20vh)
The result would be a grid consisting of 16 children cells.
The problem I discovered later is that when working with grid element in raw HTML (without a builder like cornerstone), when using the above specs, it doesn’t produce 16 additional elements inside the main grid element.
But when working with Cornerstone, there are 16 additional div elements that make up individual cells. The problem is, when I combine cells, it produces a single cell from the combines cells, making the individual cells unnecessary and pushes them down. Here’s the same example shown visually:
Showing a grid consisting of 16 cells.
Grid with combined cells to make up 5 large cells:
5 cells are supposed to be made from all 16 cells:
But combining the cells creates 5 major cells and leaves 11 cells empty and unused:
I’m not sure how to resolve this. The 16 cells were supposed to be used in their entirety. What am I missing?
Any help will be appreciated!
Thank you!