Design comparison
SolutionDesign
Solution retrospective
- I don't know, how to add photo/icon into the input, so i have this mistake.
- if u have some advice please tell me
Community feedback
- @RioCantrePosted over 2 years ago
Hello there! Good job in this challenge. Viewing the solution, I think you should consider the following as well…
- Instead of placing the icons in the
placeholder
, another approach is to add the image next to it. Like this example...
<div class="input-wrapper"> <input class="input-text" type="text" name="people" id="people" placeholder="0"> <img src="./images/icon-person.svg" alt="person-icon"> </div>
Refactor the input part with this...
<div class="people"> <div class="hid"> <p>Number of People</p> <p class="can hide">Can't be zero</p> </div> <div> <input placeholder="🧍♂️" type="number" name="people" class="num" id="people"> <img src="" alt"" /> </div> </div>
Another approach would be this one Forms in icon
- Adjust the breakpoints of the media query, starting at
725px
Above all, Well done! Keep it up and Hope this is helpful!
Marked as helpful0 - Instead of placing the icons in the
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