What I’m trying to do:
I’m working with a flow panel that has items with varying text lengths. I want all the items in each row of the column panel to match the length of the longest item in that row. I’ve attempted to solve this by creating a CSS class for both the FlowPanel and individual items, setting properties like ‘display: flex’, ‘align-items’, ‘align-self: stretch’, and ‘height: 100%’. However, these solutions haven’t been effective due to the intricate ‘div’ structure generated by Anvil. If anyone with advanced CSS expertise has a straightforward fix, I’d greatly appreciate your input.
What I’ve tried and what’s not working:
.anvil-component.anvil-role-stretch-flow {
display: flex;
flex-wrap: wrap;
align-items: stretch;
width: 100%; /* Ensure the container takes the full width */
height: 100%; /* Ensure the container takes the full height */
}
.anvil-component.anvil-role-stretch-flow > * {
display: flex;
flex-grow: 1;
align-self: stretch;
width: 100%; /* Ensure the children take the full width */
}