My knowledge of CSS is fairly basic. I’m embedding HubSpot forms across my company’s website and using the “unstyled from” setting. I’ve worked out how to use CSS to then customise the style of these forms to match our brand.
But this is for all forms across the site. I need to be able to target specific types of form (PPC landing page forms for example) and change their colors. I’ve been told I might be able to do this with custom classes but can’t find any documentation on this and HubSpot support pointed me here.
Let’s say, for example, I want to change the form label color for forms on my PPC landing pages. Color to white and font weight to 400.
In my additional CSS I’ve added the following:
.hs-form .ppc label {
color: #FFFFFF;
font-weight: 400;}
And I’ve added a PPC class to my form in the script bit:
hbspt.forms.create({
portalId: '4464750',
formId: '4a4928fd-35c2-44dd-a9fe-2e9234b96284',
cssClass: 'ppc'
The result is this: App Development in Surrey - Leading App Developers | Sonin (scroll down to see form). The form labels are still white and look more 500 weight to me rather than 400.
Am I missing something obvious?
Kind regards,
Tim.

