Welcome to the community @clement_amicaliste
Your issue may be a CSS conflict. You could try to force precedence of the Klaviyo form styling with !important to see if that resolves it by adding the following CSS:
.klaviyo-form-VffJj6 {
width: 100% !important;
max-width: none !important;
}
Hope that helps.
Regards
Andy
Thanks @bluesnapper !
Adding CSS worked, not exactly the one you suggested, here’s what worked (with some help from ChatGPT):
<style>
/* Cap the form to 600px and center it */
.klaviyo-form-VfFtr6,
.klaviyo-form-VfFtr6 .klaviyo-form,
.klaviyo-form-VfFtr6 iframe {
width: 100% !important;
max-width: 600px !important;
margin-left: auto !important;
margin-right: auto !important;
display: block !important;
}
/* Mobile safety: let it go full width below 600px */
@media (max-width: 640px) {
.klaviyo-form-VfFtr6,
.klaviyo-form-VfFtr6 iframe {
max-width: 100% !important;
}
}
</style>
Thanks again!
Hi @clement_amicaliste
Pleased to hear you got a working solution! Thanks for posting back.
Have a great week.
Regards
Andy