# Using CSS to Target Different Forms on Same Wordpress Page

**URL:** <https://community.hubspot.com/t/using-css-to-target-different-forms-on-same-wordpress-page/64114>\
**Category:** CMS Development\
**Tags:** css\
**Created:** [August 30, 2022, 9:43pm UTC](https://community.hubspot.com/t/using-css-to-target-different-forms-on-same-wordpress-page/64114 "2022-08-30T21:43:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MMott](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mmott/32/102498_2.png) [@MMott](https://community.hubspot.com/u/MMott)\
**Post date:** [August 30, 2022, 9:43pm UTC](https://community.hubspot.com/t/using-css-to-target-different-forms-on-same-wordpress-page/64114/1 "2022-08-30T21:43:51Z")

</div>

Hi,

I have two HubSpot forms that I’m embedding on the same Wordpress page. The CSS is working fine on both forms. However, I want to target each form so that the button on form A, for example, is a different color than form B. Does anyone have any advice for using CSS to target each form uniquely?

Thanks!

M.

---

<div class="post-metadata">

**Author:** ![BarryGrennan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/barrygrennan/32/97794_2.png) [@BarryGrennan](https://community.hubspot.com/u/BarryGrennan)\
**Post date:** [August 30, 2022, 10:53pm UTC](https://community.hubspot.com/t/using-css-to-target-different-forms-on-same-wordpress-page/64114/2 "2022-08-30T22:53:24Z")

</div>

Wrap each in a different div. Then target the button like:

div.classone form button {

// Styling

}

div.classtwo form button {

// Different Styling

}

* * *

 ![profile2022a.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/7273a34ccfe3489fceebc8a36eca751481b59531.jpeg)

**Barry Grennan**

[Freelance HubSpot CMS Developer](https://www.seoanseo.ca?utm_source=HubSpotCommunity)

[Website](https://www.seoanseo.ca?utm_source=HubSpotCommunity) | [Contact](https://www.seoanseo.ca/#contact?utm_source=HubSpotCommunity)

---

<div class="post-metadata">

**Author:** ![MMott](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mmott/32/102498_2.png) [@MMott](https://community.hubspot.com/u/MMott)\
**Post date:** [August 31, 2022, 7:47am UTC](https://community.hubspot.com/t/using-css-to-target-different-forms-on-same-wordpress-page/64114/3 "2022-08-31T07:47:11Z")

</div>

You are awesome. Thanks so much!
