Checking if an input is empty with CSS Form Validation Part 1: Constraint Validation in HTML body { margin-top: 1.6em; } .form-group { position: relative; margin: 1em; } .form-group .form-control { } .form-group .form-control::placeholder { opacity: 0; } .form-group .form-control + label { color: #000; position: absolute; top: 50%; padding: 0.375rem 0.75rem; transform: translateY(-50%); transiti..