Skip to main content
Question

Can't remove white space between sections after using "make code from design" in Figma Sites

  • July 29, 2026
  • 0 replies
  • 7 views

almlopez

I converted my header into code so that it will follow any viewports’ screen size. However, there’s a space between the header and my next section that I can’t remove. I tried using the AI to help me remove it but it’s not disappearing. It looks fine on my workspace but it appears when I preview and it’s also present in my published website. Any ideas how to remove it?

 

How it looks on my workspace
​​​​​


 
How it looks when I preview
  • Other notes:
    • Header and the next section has 0 padding and margin
    • It still happens when I hide the next section (still a gap between the header and the footer) which leads me to believe the problem is in the footer

I’d also appreciate if you guys know any other methods to make a frame fullscreen for any viewport size. Thanks!Â