Design comparison
SolutionDesign
Solution retrospective
- How do I align the button for both desktop and mobile view?
Community feedback
- @PaliTriesToDesignPosted over 2 years ago
Hello!
Try adding
position: relative
to your advice-card div. Then, you could adjust your refresh-btn with thebottom:
property but most important (I think), try this with yourright:
orleft:
property:right: 50%; transform: translateX(50%);
.This should center your button horizontally relative to your card.
Marked as helpful1
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