Grid - First Grid Area is blank and I'm not sure why

So I’m just starting out with using webflow and I’m trying to use Grid, but it’s not working how I feel it should.

When I create a grid and add elements to the grid, the first grid area is always empty. See video.
Can someone tell me what’s going on here and how do I fix this?


Here is my site Read-Only: https://preview.webflow.com/preview/judes-stellar-project-f3d3de?utm_medium=preview_link&utm_source=designer&utm_content=judes-stellar-project-f3d3de&preview=0e0213d697a044022e76078705911964&mode=preview

3 Likes

Hey Jude, welcome to the Webflow community :wave:

The issue only happens when the grid setting is applied to the pre-built container element, and has proven difficult to figure out.

You can use any other element with display: grid. So you could either make the container with a normal div block, or drag in the Grid element into the container, which will work without issues. Rest assured, this is on us and is actively being worked on.

Happy designing!

6 Likes

So happy to have stumbled upon this! I had a bunch of grids on a site that were driving me nuts with that empty box and ended up having to set them all to manual. Never would have guessed it was because of the container. Am now able to finally to go back to the magical world of “auto.” :smile:

1 Like

I just had it happen on a normal grid element. This is a showstopper. You guys need to fix your architecture or whatever causes these absurd abnormalities. This topic comes up constantly, and your PMs or designers or just simply anyone does nothing about it.

This WAS fine, then I added a button, as soon as I styled it, the whole thing shifted as if there was content in the first grid cell. So, desperate I put the button in a “blank” unstyled div and then it worked. NO CLUE WHY. These kind of inexplicable glitches seem to happen constantly… you guys seriously need to start addressing these UX issues.

2 Likes

OK, as alluded elsewhere, as no one cares to explain, my base button class had float. However, frustratingly… totally nonsensically, when a button is INSIDE a grid (or anything I would imagine), the float property no longer is accessible. I had to take the button outside the grid, give it a subclass, and then make the subclass cancel out the float, and then put it back into the grid.

STILL… can ANYONE explain why this happens?

Hi @rps I have done video for you where I try explain why is this correct behaviour and I also pointing some issues that WF have with correct rendering.

here are links I have mentioned:

W3.org - Grid

cheatsheet

1 Like

I am having a similar issue to the original post. The first grid area is missing the photo on my published website, I have tried moving the grid content around and it is always the first box that is missing the photo. It is visible in preview etc but it does not show up when published.

It’s in the materials tab on this webpage:

If this is helpful to anyone, I have “sort of” identified what’s causing this and “sort of” have a work-around.

When Grid is applied to certain Webflow elements (as discussed, Containers, and I have also identified Link Blocks falling into this category), the class ‘.w-clearfix’ is inexplicably added to that element whether or not the ‘clear’ attribute has been employed anywhere in the structure. That element adds :before and :after pseudoclasses that contain a ‘content: " "’ attribute — in other words, it’s forcing a single space into an invisible “cell” before your first actual content. As far as I can tell, this is a bug, plain and simple.

The (sort of) work-around is adding custom CSS to the ‘head’ element of your page to undo the ‘w-clearfix’ addition. It should look something like this:

<style type="text/css">
.YOUR-CONTAINER-CLASS.w-clearfix:before,
.YOUR-CONTAINER-CLASS.w-clearfix:after {
content: none;
}
</style>

The all-caps text above should be replaced with whatever the class name is for the container in question — i.e., if your Link Block has a class of ‘my-link-block’ then that’s the text that should appear there. As you may already know, this won’t change anything within the Webflow Designer, but the errant empty cell will disappear on your live site.

Hope that helps!

3 Likes

Hello Everyone!
To Turn collection list in to a grid We change the display settings to Grid

  • to achieve n column layout.
    image
    But We might have changed the layout settings of the parent container (Collection List Wrapper) which causes this problem.
    image
    By changing it back to full width this problem would be solved hopefully. :hugs:
    Before

After

10 Likes

Thank you @Suleman_Asif this solved my problem!!!

1 Like

This solved the issue for me too. Thanks so much @Suleman_Asif

1 Like

Thank you @Suleman_Asif! Really helpful!

1 Like

Thanks, this worked for me too! Nice one Suleman.

1 Like

Thank you! @Suleman_Asif

1 Like

This helped! Thank you!

1 Like

Just place a DIV as a child in your container and start building there or bypass the container element.

Suleman_Asif you are the man. I am glad I continued to read down this thread. Thank so much this was the issue.