There is a bug in validation which I'm not sure how to fix. Submitting invalid mail format shows an adequate error message, but if you submit a valid mail format, next invalid input will be considered as valid even though I am resetting form 2 seconds after every input.
Can someone tell me what is actually happening here?
I found out what is happening with bug I mentioned in question.
It says that form.reset() method restores a form element's default values. Even though I did not set default values, it saved last typed values.
Setting input value to empty string solved the problem.
Try removing background properties from all media queries except general body css and this should work:
background-image:
url(./images/bg-pattern-top.svg),
url(./images/bg-pattern-bottom.svg);
background-repeat:
no-repeat,
no-repeat;
background-position:
right 52vw bottom 35vh,
left 48vw top 52vh;
there is no need for margins to center a div or some other element. Just add these properties to its parent element and you are good.
For your particular situation:
This will also fix width problem on that card.
Note that without that height: 100vh property, card would be horizontally centered, but not vertically.
Centering card like does not require additional margins, widths, heights etc. to element.
I wonder how to target certain elements inside a container? For example, the 26 next to Victor's name. How do I target only those characters for style?
.row-2, the bottom half of the card. I know there is a better way than just writing span everywhere.
I forgot the background. I'll come back to that later.
To get those background patterns in place, try adding following css to your body:
body {
background-image:
url(./images/bg-pattern-top.svg),
url(./images/bg-pattern-bottom.svg);
background-repeat:
no-repeat,
no-repeat;
background-position:
right 52vw bottom 35vh,
left 48vw top 52vh;
}
Thanks for your time and effort to help others improve their coding skills!
I much appreciate the advice you gave me, @correlucas! I will try to improve quality of my code on a very next challenge.