We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Mar 18, 2021 2:14 PM
You can center a form on a HubSpot template using horizontal spacer modules or custom CSS.
/* To center the form within its module and applying a max-width */
form.hs-form,
.hs_cos_wrapper .form-title {
max-width: 600px;
display: block;
margin: 0 auto;
}
/* To center the form title within a form module */
.hs_cos_wrapper .form-title {
text-align: center;
}
/* To center the form submit button */
.hs_submit {
text-align: center;
}
/* To center the form within its module and applying a max-width */
form.hs-form,
.center-form .hs_cos_wrapper .form-title {
max-width: 600px;
display: block;
margin: 0 auto;
}
/* To center the form title within a form module */
.center-form .hs_cos_wrapper .form-title {
text-align: center;
}
/* To center the form submit button */
.center-form .hs_submit {
text-align: center;
}
Mar 19, 2021 5:38 AM
Thank you for sharing @vrneuman !
![]() | Saviez vous que la Communauté est disponible en français? Rejoignez les discussions francophones en changeant votre langue dans les paramètres ! Did you know that the Community is available in other languages? Join regional conversations by changing your language settings ! |