Currently, I am utilizing the contact form 7 plugin on my Wordpress website. While I have two forms set up, I only want to center align one of them.
To achieve this, I initially added the following CSS code in my additional CSS:
div.wpcf7 {
text-align: center;
}
Unfortunately, this code centered both of the forms instead of just the one I intended. The specific form that I want to center align contains the shortcode:
[contact-form-7 id=”257″ title=”Subscription Form”]
In the past, I used to easily center align by simply adding <center>
before the shortcode. However, now I am using a plugin for customizing the form, which requires selecting the desired form instead of manual editing the shortcode. Despite this, the text is not being centered as expected.
If anyone knows the correct additional CSS code to align the text or the entire form in the center (but only for one specific form and not all), please share it with me. Thank you!