Close

Contact us form with floating labels

This is an example of another contact us form with floating labels, designed using HTML, CSS, and Bootstrap framework 4. The font style is imported to the code using its URL. The users are given the ability to access the contact form on clicking the modal button.The body of the form has the styles of background color as linear-gradient(0deg, #fff, 50%, RGB(210, 231, 252)), and font-family as 'Rubik', sans-serif. The font size of the title has been calculated using the calc(14px + (17 - 14) * ((100vw - 360px) / (1600 - 320))) formula. The background color of the modal button is set as #52B4DB. The input text fields are given a font-size of 15px, and the opacity is set as 0.5. The font-size of the labels gets changed to 8px in the focused mode, and the font color gets changed to #04A79C to create the floating effect on labels. In a focus event, the input text fields take the effects of border as 1px solid #04A79C, and box-shadow as 2px 2px rgba(233, 226, 226, 0.8). The cursor style for the modal is set as pointer to get the hand cursor effect in the hover event. Source: https://bbbootstrap.com/snippets/contact-us-form-floating-labels-23481684

Post Comment or Questions

Lorem ut labore et dolore magna aliqua. Ut enim ad minim veniam.

Your email address will not be published. Required fields are marked *

Several Related Snippets

Lorem ut labore et dolore magna aliqua. Ut enim ad minim veniam.