Design comparison
Solution retrospective
Hello! I would like the red border (that shows when there's an error) not to appear around the submit button. How can I achieve it besides giving the button absolute positioning (that makes the error icon show behind the buton)?
Community feedback
- @MarcosfitzsimonsPosted over 2 years ago
Hi! Add to your css file:
.email-form { align-items: center; }
.error-icon-wrapper { position: absolute; right: 3rem; }
.submit--button { padding: .9rem 1.7rem; position: absolute; right: -.5rem; z-index: 100; (perhaps it is not necessary) }
In Desktop Design: .submit--button { padding: 1.2rem 1.7rem; }
Marked as helpful0@lidiakrajewskaPosted over 2 years ago@Marcosfitzsimons Thanks! I've changed the values a little, but positioning error-icon-wrapper was what I needed :)
(Yes, it works without z-index too)
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