hey,
Iv’e design a website in webflow that has a BG line grid to it.
it all looks ok in the designer and when i publish it,
but when i export the code,The grid and the content are not aligned, and i couldn’t find any reason…
Thanks for posting about this — it definitely looks like odd behavior.
I was able to see this behavior on my end and I’ve reported it to the team. We are looking into this now, hoping to resolve this issue as quickly as possible.
Thanks in advance for your help and patience; I’ll post back here when I have more information.
In the export modal, we have a hidden “Minify HTML” option (which behind the scenes is actually “don’t beautify”). You have to press Control-O to see it. David Walsh explains why this is an issue here: Remove Whitespace Between Inline-Block Elements
Other potential fixes:
Set parent font-size to 0.
Use flexbox or grid on the lines parent, instead of inline-block on the line children.