Form error messages styles | Bouncing input labels styles
Sun Mar 20 2022 18:08:42 GMT+0000 (Coordinated Universal Time)
Saved by @max_demydenko #css #form
When the input is not touched label is inside the field. When the input is touched or there is some values inside it the label is above the field with reduced font-size NOTES: - field-item__wrapper is a class for div that wraps input and label tags - form__field is a class of input element - form__label is a class of label element IMPORTANT: - To make this code work properly you should have a wrapper for input and label tags and equal name (in input tag) with for (in label tag) attributes - Also you should have the same field placeholder as this field label
https://agency-website-c0d1e7.webflow.io/
Comments