Submitted about 2 years ago
Base Apparel Coming Soon page, Vanilla HTML/CSS/JS
@tarasis
Design comparison
SolutionDesign
Solution retrospective
How best to handle the submit button and error image beside the text field? Originally I had the input in a form (class names still reflect that), but I could get a sensible layout. Then I swapped the input to being in a div, and using display flex for the input, error and submit button. The issue is that it truncates the textfield more than I'd like, particularly on the mobile size.
I tried to use position: relative
and right:
but couldn't get it working correctly.
Community feedback
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