NO BUG: 3 columns post query shows up as 2 columns in Firefox

I’m working on this website and this query of blog posts shows up perfectly on all devices I’ve checked so far except for Firefox, where it puts it into two columns, as seen below:

This is what it’s supposed to look like:

It’s set to 3, except for smaller devices in which case it’s set to 1 column, so 2 should actually never be an option.

Other than this I can’t find any other weird things happening in Firefox so hopefully this is the only problem. Anyone have a clue what is causing this and how to fix it? :slightly_smiling_face:

I’ve got it set up in Bricks as follows, until the ‘mobile portrait’ breakpoint which is where it changes to 1 column.

What happens in Firefox if you reduce the spacing to 10px?

Additionally, it seems like there’s a (break)point where Firefox does actually agree that it should be three columns, but above a certain point it makes it two? Doesn’t make sense to me, at all…

Smallest I can go, 1 column, perfect:

Bit wider, where it (should) break(s) to 3 columns, still working good as it should:

But when I get to around this point (and up to the widest I can go on my 27" monitor), it reverts to 2 columns:

Interesting…

Changed it to 10px and then it seems to work as it should (3 columns), but if I change it to ANYTHING other than 10px it’s doing the same weird behaviour again!

I think it is a spacing issue.

I think on the larger screen your images or your items get too wide and then together with the large space between there is not enough screen width to show 3 columns. Or Firefox does not correctly calculate the item width.

Can you put a max-width on the images or on the items and test?

I am usually making my own grids so that I have full control over the spacing. But I don’t use Firefox, so I have no experience with that browser…

As it is right now I can’t find a setting to add a max-width to try if that makes a difference :frowning: I’ve got other query’s that are custom instead of the built in ‘Posts’ element, so I guess I could convert it to a custom one butttt can I still add the filter part like that? I’m mostly using the pre-built one because that was already an option.

The images/block that repeats is actually the perfect width even when it shows the wrong amount of columns, that makes it extra weird to me… It’s not like it’s stretching the whole thing to fill the container with 2 containers instead of three, nor is it erasing the right column.

The weird thing is that it ONLY does this in Firefox; I’ve tested on multiple devices and in multiple browsers, and so far I’ve only seen it in Firefox (which coincidentally is my client’s main browser, otherwise I would’ve probably never known bc I don’t use FF either).

Update:

I tried making a bunch of changes to see if anything fixes it, like the grid image ratio, image size, layout width etc etc. Nothing seems to change it except for the 10px, which seems to literally be the only gap size that allows Firefox to show three columns consistently…

Don’t know.

It looks ok on my iPad.

Must really be something with Firefox.

If you need the filtering functionality from the posts element, then I guess you have no choice but to stay with it.

Maybe one of the css gurus here like Timmse can find the culprit. I am sure they are reading this.

Cheers

Patric

1 Like

Yeah weirdly it really seems to be exclusively a problem in Firefox. Really wish my client weren’t using that browser because she’s never gonna let this slide now haha.

Except for the filter-part I just tried to re-build the query without the posts element and couldn’t really get it the way I wanted it, the ratio-setting for the thumbnail is something else I can’t get working with my limited CSS skills.

Anyway, thanks a lot for your answering & your suggestions! I’ve tried a bunch more settings but so far nothing helped… Hopefully someone else has an idea!

Do you have any entries in the layout of the posts element?


Yes, it looks like this, no added other styles.

And in the Style tab (next to the Content tab)?

Especially in the layout section under the Style tab…

Try CSS grid instead of flex. There is so much more flexibility and options.

Yeah, but he / she needs the filtering function from the posts element…

1 Like

Yeah there’s nothing in the styles tab at all:

Page itself is as simple as it gets, just the title and the posts-query in a container:

Screenshot 2023-05-17 at 12.03.28

Container has a tiny bit of custom CSS just to get the filters to align to the left like the rest of the content:

The only part I’m using the Styles tab in this page is within the Posts element, nothing else has any added style except for the bit of CSS. Nothing in the Content tabs either.

I’m assuming that the problem is really within the posts element, anywhere else wouldn’t make sense right?

As it is working in all Browsers except Firefox, it could be an issue with that Browser.

Maybe something similar like this one

1 Like

I tried changing the Posts’ Layout setting from Grid to Masonry and even though this is not what I want it to look like, now it does correctly show the 3 columns!

Is there an easy way to make the masonry to look like the grid? The images should all have a 4:3 ratio (cropped) and a row of posts should all align at the same height (even if the post above it has a longer title or something), if that makes sense?

Oh yeah this looks exactly like what is happening to my posts! Great find, thanks!
When they say “Add this custom code (CSS) to your before body open custom code area.”, what would be the best placement for this within Bricks? In my header? In my child’s stylesheet?

Well, I am not sure that it will solve your issues, but worth a try.

I would enter the css code into the css section under the Style Tab

Sigh, still nothing unfortunately!
Tried putting it in a bunch of other places too but so far nothing changed a thing

Which css selector did you use? .bricks-layout-wrapper?