Add border and background to Contact 7 form WordPress

I am trying to add a border and a background color to Contact Form 7. I have used “inspect element” to see what class/ids to target but I have not found one that targets the entire form as a whole. Everything I’ve tried (such as .wpcf7-form and .wpcf7) targets the text areas only. Can someone please help? Thanks!

Related posts

Leave a Reply

2 comments

  1. You could surround the form with a div in html:

    <div class="custom-styling">
        // contact form 7 code here
    </div>
    

    Then style the custom-styling class with CSS.