Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Horizontal Repeating Section??? Fact or fiction?

Trying to figure out if I'm just special or is there a way to make repeating sections add horizontally instead of vertically? I've been working on this for three weeks and can't come up with an answer.
1611463807

Edited 1611463886
GiGs
Pro
Sheet Author
API Scripter
I've never done it but I know its possible. You need to look into adding styling to the repcontainer class and its repitem elements. When a repeating section is rendered on the character sheet, roll20 creates a repcontainer elements, and then puts every row inside a repitem inside that repcontainer. So you can change the ordering by using grid, flex, or whatever (probably flex, or grid if you want a specific number of columns), on the repcontainer, to control how the repitem elements flow.  To target a repeating section named repeating_items you'd use .repcontainer[data-groupname=repeating_items] and if you want to style the "rows" inside it .repcontainer[data-groupname=repeating_items] .repitem
So how do I specify that each new repeating item needs to be in flex format of I don't know what Roll20 will name it?
1611552022
GiGs
Pro
Sheet Author
API Scripter
Like so .repcontainer[data-groupname=repeating_items] {     display: flex; } For Flex and Grid, you putt hose display types on the parent item, which is the repcontainer.  Put any styling you need on the individual items on the repitem.