hubspot form embed styling

HubSpot Form Embed: Mastering Styling for Conversions

By Brian Allen
AD

Embedding forms on your website, particularly those created using HubSpot, not only helps collect valuable leads but also enhances user experience. However, default HubSpot forms might look too bland or out of sync with your website's aesthetics. That's where styling comes in. Let's delve into how you can style HubSpot forms to match your website's design and improve conversions.

Before we dive into the specifics, ensure you're using the HubSpot CMS or have access to the Design Tools within your HubSpot account. Now, let's explore the world of HubSpot form embed styling.

HubSpot Form Embed Styling Fundamentals

The core of customizing a HubSpot form's appearance lies in CSS. You can bypass the limits of default styles by employing custom CSS. However, to do this, you'll need a basic understanding of CSS and how to integrate it into your HubSpot forms.

AD
Custom style HubSpot form embeds using Webflow designer | Finsweet+ | Webflow Templates
Custom style HubSpot form embeds using Webflow designer | Finsweet+ | Webflow Templates
Set up and style a legacy form on an external site
Set up and style a legacy form on an external site
HubSpot | Software & Tools for your Business - Homepage
HubSpot | Software & Tools for your Business - Homepage

For starters, accessing the form embed settings, you'll find the CSS override option under the Form options. Here, you can input your custom CSS to tailor the form's appearance.

Understanding HubSpot Form CSS Selectors

To create effective CSS, you need to target the correct elements within your form. HubSpot provides specific CSS class names that allow you to modify various form elements like field wrappers, labels, inputs, and buttons. Familiarize yourself with these selectors to create precise, targeted styles.

a diagram with different types of hubspot
a diagram with different types of hubspot
an image of the different types of web pages
an image of the different types of web pages
HubSpot WordPress Plugin
HubSpot WordPress Plugin

Here's a simple example of how to target a submit button's background color: .hs-form-fieldset .hs-form-field:nth-child(n) .hs-form-fieldset-button { background-color: #FF6347; }

Responsive Design for HubSpot Forms

Responsiveness is key these days, with users browsing websites on various devices and screen sizes. Ensuring that your styled form looks good on mobile, tablet, AND desktop is crucial. Use media queries in your CSS to create responsive form designs.

AD

Here's a basic example of how to adjust the width of form fields based on the screen's size: @media only screen and (max-width: 600px) { .hs-form-field { width: 100% } }

Hubspot Marketing hub oboarding
Hubspot Marketing hub oboarding
What is HubSpot CRM? šŸš€
What is HubSpot CRM? šŸš€
What I Learned While Exploring HubSpot as a Beginner...
What I Learned While Exploring HubSpot as a Beginner...
HubSpot Onboarding: Everything You Need to Know
HubSpot Onboarding: Everything You Need to Know
HubSpot CRM Implementation: A Practical Guide for Building a CRM That Actually Works
HubSpot CRM Implementation: A Practical Guide for Building a CRM That Actually Works
How I’d Make $100/Day with the HubSpot Affiliate Program
How I’d Make $100/Day with the HubSpot Affiliate Program

Advanced HubSpot Form Embed Styling Techniques

Once you've got the hang of basic CSS overrides, explore more complex styling techniques to make your forms truly unique.

For instance, you could create inline forms (forms that don't take up space above or below other content) for seamless integration into your website's layout. Alternatively, consider using accordions or modals to create more engaging user experiences. These advanced styling techniques involve more complex CSS and sometimes JavaScript, so be prepared to delve deeper into coding.

AD

Using Custom HubSpot Form Templates

If CSS seems daunting, consider using custom form templates. HubSpot offers a wide range of templates, and some allow for extensive customization, including custom CSS. You can also create and save your own form templates, making future form styling a breeze.

Hubspot
Hubspot

To find and use custom form templates, navigate to the Form settings, then click on Template, and select Custom.

Integrating Third-Party Tools for Form Styling

HubSpot's CSS override feature is powerful, but sometimes you might need additional functionality or advanced styling. In such cases, consider integrating third-party tools or using HubSpot's API to create custom form designs.

AD

For instance, you could use tools like InVision or Adobe XD to create mockups of your styled forms, then translate those designs into CSS.

Lastly, remember that less is often more when it comes to form design. While you can use extensive styling to differentiate your forms, ensure that the design doesn't distract from the form's primary purpose: converting leads. Keep your designs clean, intuitive, and above all, user-focused.

AD