API-ADVICE-GENERATOR

Solution retrospective
My button keeps changing position based on the size of the screen?How can I fix that? Any suggestions/tips.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @simokitkat
you can give the #content {position :relative} and give the button { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 50%); }
and it will be fixed at center bottom of the parent div
Marked as helpful
Join 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