This is one of the most commonly used forms and layouts used for a contact page, and also the quickest to make. You can view this example live on our Contact Us page.
This example uses 5 different CSS selectors to achieve this look, so we will explain them in the order they are listed in the picture above. One thing to keep in mind is that your fields may have different numbers for them.
/*** Styles First Name Field ***/
#wpforms-373-field_0 {
border-radius: 20px;
}
/*** Styles Last Name Field ***/
#wpforms-373-field_0-last {
border-radius: 20px;
}
/*** Styles Email Field ***/
#wpforms-373-field_1 {
border-radius: 20px;
}
/*** Styles Comment Field ***/
#wpforms-373-field_2 {
border-radius: 20px;
}
/*** Styles Submit Button ***/
#wpforms-submit-373 {
display: flex;
justify-content: center;
margin: auto;
border: solid 3px white;
border-radius: 50px;
background-color: darkslateblue;
color: white;
font-weight: 900;
height:100px;
width:100px;
}
/*** Styles Submit Button on Hover ***/
#wpforms-submit-373:hover {
background-color: darkgray;
border: solid 3px darkslateblue;
color: darkslateblue;
}
/*** Styles Form Body ***/
#wpforms-373 {
padding: 30px 20px;
background-color: lightskyblue;
border-radius: 10px;
}
/*** Styles First Name Field ***/
#wpforms-373-field_0 {
border-radius: 20px;
}
/*** Styles Last Name Field ***/
#wpforms-373-field_0-last {
border-radius: 20px;
}
/*** Styles Email Field ***/
#wpforms-373-field_1 {
border-radius: 20px;
}
/*** Styles Comment Field ***/
#wpforms-373-field_2 {
border-radius: 20px;
}
/*** Styles Submit Button ***/
#wpforms-submit-373 {
display: flex;
justify-content: center;
margin: auto;
border: solid 3px white;
border-radius: 50px;
background-color: darkslateblue;
color: white;
font-weight: 900;
height:100px;
width:100px;
}
/*** Styles Submit Button on Hover ***/
#wpforms-submit-373:hover {
background-color: darkgray;
border: solid 3px darkslateblue;
color: darkslateblue;
}
/*** Styles Form Body ***/
#wpforms-373 {
padding: 30px 20px;
background-color: lightskyblue;
border-radius: 10px;
}
In the screenshot above, our form ID number is..... 373. Does that look familiar? It should because our CSS selector used that same number.
Now that you have the ID number of the form you're wanting to style, replace our 373 with yours, and you're all set. If you're not seeing the changes, be sure to flush your browser cache and also you can view the form using Incognito to confirm the changes took.
Have a comment or a question? Post it below. Like what you read, share it using the buttons below.
This is an Elementor Popup triggered by Text.