Design comparison
Solution retrospective
How to lock buttons on the same height? Now it depends on size of description above.
Community feedback
- @thomashertogPosted over 3 years ago
if you make the container (of the 3 columns) a flex container, they will automatically have the same height (because of the flexbox property align-items: stretch;) combine that with flex-grow: 1 on the description or a margin-top (or margin-block-start) of auto, that should fix the buttons at the bottom
other feedback. you could fix the accessibility issues and while you're at it, please note that usually there is only 1 h1 tag on a page which contains the title/purpose of the web page
your CSS is overly verbose and far from DRY (Don't Repeat Yourself) try cleaning things up by using classes that you can reuse (for example the shared button-styles)
Marked as helpful1 - @JimenderPosted over 3 years ago
if you want to fix the position of buttons you can try absolute positioning.
0
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