Design comparison
SolutionDesign
Solution retrospective
1.could someone help me with the the input element border or outline problem i am having
Community feedback
- @AlfredoPegueroCPosted 10 months ago
Hello, @OsatohanmwenT
Your solution looks great
This is the solution to the border error
- Element with class list that includes both #newsletter-input and error-border.
#newsletter .news-input #newsletter-input{ padding: 15px 20px; border-radius: 5px; border: none; outline: 1px solid black; }
#newsletter .news-input #newsletter-input.error-border{ outline: 1px solid red; }
- Tips
- Learn how to use pseudo-elements such as ::before and ::after; this will help you display error messages.
- The structure of labels Label mdn
I hope it helps
PS: Sorry about my English; I'm still learning.
Marked as helpful0
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