Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

Responsive interactive card form with mobile-first approach

bem, accessibility
Roksolana•910
@RoksolanaVeres
A solution to the Interactive card details form challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


The challenge gave me a really hard time when I tried to position the elements on the page. In the end, I reached the desired result, but there are still some small issues I haven't managed to solve, like:

  • when focused, the inputs don't have rounded corners. Thanks to Stack Overflow I've managed to make the color of the focused input with the gradient but the property border-radius doesn't work with it 😔
  • I wonder whether there is a better solution to make the card number input have spaces between every 4 digits entered. Right now I force a user to make these spaces manually by showing a corresponding error message, but as I understand the input should make it automatically.

If you have any ideas on how to deal with the issues or just want to leave general feedback on my solution, please do it) thanks in advance🙂

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Roksolana's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License