
So I've found this and this thread talking about CSS Grid and how to use it. I've managed to make it work, but only in the preview window.
But for some reason, the grid doesn't work in the game, and everything is just stacked after each other. I'm attempting to make the main layout with grid-template-areas. Have anyone manage to make it work, or should I try to formulate the grid through other means? The existing threads only discusses using one-dimensional grid-template-areas or completely ignoring it in favour of other methods. To me it just seems like a fairly useful method for designing grids.
.charsheet {Source:
display: grid;
width: 700px;
height: 900px;
grid-gap: 5px;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 150px 1fr 1fr 1fr 20px;
grid-template-areas:"cstitle cstitle cstitle cstitle"
"skill main-info main-info power"
"skill attack inv power"
"skill misc inv power"
"note note note note";
}
In Game:
Preview:
EDIT: CSS link fixed