I am using CRAFT theme and want to resize cards to the same size in the collage section on the main page.
Topic summary
A user working with the CRAFT theme needed to make cards uniform in size within the Collage section on their main page.
Resolution:
- The issue was self-resolved by finding a solution in a blog post
- Custom CSS code was added to the Collage section’s custom CSS area
CSS Solution Applied:
- Used flexbox (
display: flexwithjustify-content: space-between) on container divs - Set
flex: 1on child divs to ensure equal sizing - Made images responsive with
width: 100%andheight: auto
This discussion is resolved with a working solution provided.
1 Like
Found solution in the one of the blogs. I added following code to custom CSS section of Collage
div {
display: flex;
justify-content: space-between;
}
div {
flex: 1;
}
img {
width: 100%;
height: auto;
}