I created a simple form in CodePen. The
validation on the
field works just fine. However, I want to put a little bit of padding between the two fields and when the error message is supposed to display...fill in that gap (meaning, the fields below where the error message appears does not get pushed down). Instead, it keeps pushing the fields down to make room for the error. When the error is fixed, the field is pulled back up.
I want something like this:
I have tried setting the position of
but this changed nothing.
//position: absolute; <--I've tried this, too
What am I doing incorrectly?