Submitted about 1 year ago
3-column preview card component built with HTML and CSS
@joshjavier
Design comparison
SolutionDesign
Solution retrospective
Another take on another simple challenge using basic HTML and CSS.
Again, I added CSS variables that allow customization, such as --max-width
, --min-height
.
For the card's layout logic, I used the Flexbox Holy Albatross technique and added constraints specific to this layout. Ideally, the card can hold one to three child segments. That said, nothing prevents users from adding more child segments, but the layout will switch to a vertical layout to prevent columns that are too narrow for the contained elements.
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord