Skip to main content
Contributor I
Nov 13, 2026 3:43 PM UTC
Question

Signup form background width not applying to the wrapper

Hi all,

I am trying to give a custom signup form a full-width background while the form itself stays centered, but the background only covers the form column. I used the wrapper CSS below in a custom HTML block.

signupwidthprobe2

.klaviyo-form-container { width: 100vw; margin-left: calc(-50vw + 50%); background: #f0f5fa; }

Does the parent section need a width set as well?

Thanks!

1 reply

Revup
Contributor II
Contributor II
Nov 16, 2026 4:53 PM UTC

Try putting the background on your own wrapper around the embed instead of on Klaviyo's container. Swap in your form ID. Let me know if that works!

<div class="form-bleed">
<div class="klaviyo-form-XXXXXX"></div>
</div>

<style>
.form-bleed {
width: 100vw;
margin-left: calc(-50vw + 50%);
background: #f0f5fa;
}
</style>
Giancarlo Massaro / revup.com / g@revup.com