APIs & Integrations

noahw32
Member

Align button with input field

I would like to simply align the submit button connected with my Hubspot form to the right of the input field.

 

I tried

 

.hbspt-form{
display: flex;
flex-direction: row;
}

 

AND

 

.hbspt-form{
display: inline-block;
}

 

Any idea?

0 Upvotes
1 Reply 1
Willson
HubSpot Employee
HubSpot Employee

Align button with input field

Hi @noahw32 

 

In order to apply default styling to our Forms, you need to ensure that the form itself has the Raw HTML option enabled. 


By default our Forms are rendered in an iframe which blocks custom CSS from being applied. You can follow this guide for steps on how to do this.

 

I hope this helps!

Product Manager @ HubSpot
0 Upvotes