The Divi contact form shows its field labels inside the empty input boxes. Use this CSS to show them above the boxes instead

This is from: https://www.peeayecreative.com/how-to-move-labels-above-input-fields-in-the-divi-contact-form/


/*----- MOVE LABELS ABOVE THE FIELD BOXES -----*/
/*add labels above the form input fields*/
label.et_pb_contact_form_label {
display: block !important;
  font-weight: bold
}
/*hide the extra label*/
.et_pb_contact_field_options_wrapper .et_pb_contact_field_options_title {
    display: none;
}
/*make placehold text same color as field background*/
::-webkit-input-placeholder {
color: #eee !important;
}
.my_contact :-moz-placeholder {
color: #eee !important;
}
::-moz-placeholder {
color: #eee !important;
}
:-ms-input-placeholder {
color: #eee !important;
}
USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

Your email address will not be published.