Form styles

I created a form and put it in a module. In the settings of the form I enabled “Set as raw HTML form”. When previewing the module, no styles are applied to the form. However, when I put this module on the page, the styles are applied to the form and the form changes. How can I reset these basic styles for the form page to further edit the form styles

Hi @Sergey_N ,

That probably means there is some form styling in the stylesheet attached to the template you are using. You first need to find the source of the styling to either remove it or overwrite it with a new stylesheet.

Do you have a link of the page?

Hi @Teun

Thanks for answer

http://proverest-8619578.hs-sites.com/proverest-lp?hs_preview=fGdgSRWD-57519622658
Can you open this link?

Hi @Sergey_N ,

No, I can not, can you publish the page?

Check it now

http://proverest-8619578.hs-sites.com/proverest-lp

Hi @Sergey_N ,

Yeah, that works. First of all, amazing site! Looks really cool.

I assume you’re talking about the subscription form at the bottom of the page.

The ‘styles.min.css’ (probably styles.css in the design manager) that is attached to this template includes a lot of form styling. So you can either change that styling or attach a new stylesheet that overwrites that styling. If you decide to overwrite the styling from ‘styles.min.css’, keep in mind that this styling is applied everywhere where the stylesheet is attached.
Path to the stylesheet: DD_Theme_-_Proverest/theme-overrides/styles.min.css

thanks for the help, I’ll see what can be done

one last question: when styling the form, I need to just take the classes from Dev tools of browser? ( source code )

Hi @Sergey_N ,

It’s probably best to only target HubSpot forms because of the specific markup. So go with what the development tools show you (inspecting with Chrome) and always add .hs-form to only target HubSpot forms.