Design comparison
Solution retrospective
- Searched a regex pattern for the email. Seems to work perfectly.
- The design is responsive.
- I try to not put everything into the same function as i was a bit lost at some point. 😊
- Initially the input width was too wide with 100 %. Fixed it with border-box.
- I did not know how to disable form validation by browser. Added the novalidate property.
I have an issue with the list: the text is not properly aligned to the marker. I tried a lot of things with text-indent but still no solution.
Community feedback
- @Alex-Archer-IPosted 6 months ago
Hi!
It's a very few ways to stylize
marker
element, so I guess there aren't any easy ways to align text and marker. Maybe you could try to change width and height of the image directly in the svg file. Or you can put text into thep
tag and try to figure something with it. For example, padding-bottom or positioning.I solved that by setting
display
ofli
to flex and puttingimg
andp
inside it. But I have to admit that markers are more elegant decision =)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