Matias Ludueña• 1,990
@matiasluduena23
Posted
Hi Namrata. Good Work! Just one good practice that might help you in this and future projects.
- When you used a form, all your inputs, button and error message are wrapper inside the form, because some of this data you are going to send data to some endpoint server. Here Docs.
- And for the error message notice that when it appears the image jump a few pixels down, that is because you use a position static in the
<p>
element. My recomendation is:
- Replace the
<p class="error-msg">
for a<span class="error-msg">
- Use position absolute in that
<span class="error-msg">
- Use position relative to the parent, the form.
- Use top, left, right, botton to position your
span
element under the input.
Position absulute resources
Hope this help you!
Good code!!!
Matias
Marked as helpful
0
Namrata Sinha• 530
@nmrtsnh
Posted
@matiasluduena23 Thank you for the feedback! I'll fix these issues and keep in mind for future projects.
0