Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

newsletter-sign-up-with-success-message with tailwind

mofada 310

@mofada

Desktop design screenshot for the Newsletter sign-up form with success message coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


What specific areas of your project would you like help with?

  1. did here other way to implement?

group-[:invalid:focus-within]:block, I try to write group-invalid:focus-within:block but it's not working。group-invalid:block or group-invalid:block It's not working.

  1. did some method can change marker position? such as marker:mt-1

Community feedback

JaceLee 240

@jaceleedev

Posted

Hi, I'm feeling great because I think I successfully completed the project. Your questions led me to discover new things I didn't know before. Unfortunately, your questions are about topics I'm not familiar with either. However, how about trying this approach? (It's just my idea, so there's a good chance it could be wrong.)

<div class="group">
  <input class="peer" type="text" required />
  <p class="hidden peer-invalid:group-focus-within:block">Error message</p>
</div>

/* Custom CSS */
.your-class::marker {
  margin-top: 0.25rem;
}

Anyway, have a great day and enjoy coding!

0

Please log in to post a comment

Log in with GitHub
Discord logo

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