Form background change

Hi, I adjusted the width of the size of the form to be 50%.

But it remains the awkard empty white pieces on the right, how can I remove them and sort all the contents to the center.

Thx.

Hi @kimj50,

To centre the form and remove the white spaces that you happen to see on the right try adjusting your CSS by using margin: 0 auto; to horizontally centre the form within its container and also ensure that module settings allow for custom CSS in case you use a specific module.

Additionally set the parent container to have no extra padding or margin.

For your reference: Edit content in the content editor

If this helps, feel free to mark it as the solution

:check_mark:

and give it an upvote

:+1:

! Let me know if you have further questions!

Sorry but can you explain it a bit more in detail of how to adjust CSS. I have made the form from Marketing → form and do not see any section that I can adjust them.

Hi @kimj50,

  • Start by opening the form and copy the embed code and paste in the page you want it to appear.

  • Add custom CSS:

If your site is hosted on HubSpot, You can add custom CSS to a form in the advance options of the page setting where the form is added; there is a section to add codes to the HTML.

Follow these steps here: Create and customize pages?

If the site is not hosted on HubSpot, you can do it through the form settings itself.

Follow these steps here: Set up and style a legacy form on an external site?

If this helps, feel free to mark it as the solution :check_mark: and give it an upvote :+1: ! Let me know if you have further questions!

Then is there no way that I can remove that white section from form creation page?