CSS Float Placeholder

input:not(:placeholder-shown) ~ label,
input:focus ~ label {/* ..do stuff*/}
Selfish Snake