Design comparison
Solution retrospective
Hi I'm a little disappointed by this one, it was harder than I thought. I had trouble with the relative/absolute positioning of the Call to action that overlaps the footer. I couldn't center it the normal way with margin 0 auto because of the positioning. I couldn't size it correctly either. Thanks for any help.
Community feedback
- @rfilenkoPosted over 4 years ago
Hi Sol, no need for so many overwrites, simple positioning of cta block will be enough: { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }. Also check mobile version, maybe add some hover states😉. Roman
0 - @SahasSauravPosted over 4 years ago
the reason behind the accessibility issue is each must be uniquely identity from other so use aria-label attribute and this aria-label attribute also help with screen reader how to describe about the link. <a href="www.facebook.com" aria-label="facebook">Facebook</a>
0 - @waleed-alfaifiPosted over 4 years ago
You can use
position: relative
instead ofposition: absolute
and use negativemargin-bottom
to move the CTA down. When you useposition: relative
you can usemargin: 0 auto
to center the CTA. Just make sure you set amax-width
to be able to center it.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