I’m using Harlowe 2.1 and I’m trying to have a set of 10 cards where each would lead to another passage when clicked. I’m using Flexbox to position them, and it looks great, however it has 4 cards per row so I end up with a row of 2 extra cards. Since there is 10 cards I want 5 cards per row but no matter what I do nothing works. Here’s the HTML:
The CSS you supplied should display a 5 column by 2 row grid, until the font-size you are using (to display the cell text) results in there not being enough width to display 5 columns worth.
eg. the largest word in your example card elements is “content” so that and the current font-size is controlling the minimum width of the columns, so when there isn’t enough overall width to display 5 copies of “content” across the page then the grid will become 4 columns wide. etc…
You could use @media CSS rules to reduce the font-size based on the current width of the view-port.
The “content” part was just placeholder text I used for this specific post so the code doesn’t end up being long. Here’s what I have for each card <div>:
|no-hover>[\
[<img id="tart" src="card.png" title="Pick a Card">]<link#|]
Each card has a different link number, and after all the cards’ <div> tags I would use (click: ?link#)