Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Masonry not working on Firefox #1187

Open
kaiThomas236 opened this issue Apr 12, 2023 · 3 comments
Open

Masonry not working on Firefox #1187

kaiThomas236 opened this issue Apr 12, 2023 · 3 comments

Comments

@kaiThomas236
Copy link

Hi, I'm using this with Node JS and it is not working on Firefox. I am getting an error that reads "Error in parsing value for ‘left’. Declaration dropped." I can see that all of the grid items are just recieving the attribute value "left: 0;" on Firefox. On Chrome that value updates as expected and works properly. Is there something I need to do to get this to work on Firefox?

image

@RTeran
Copy link

RTeran commented Jun 5, 2023

ey @kaiThomas236! Did you manage to fix it?

@kaiThomas236
Copy link
Author

kaiThomas236 commented Jun 5, 2023

hi @RTeran I did actually figure it out, basically firefox seems to do spacing differently sometimes.

I had initially had something like this:

.grid-sizer, .grid-box { width:32%; margin: 0.65%; }

and that worked fine on Chrome, but Firefox does not like it. So instead I had to break it out like this:

.grid-sizer { width: 33.3%; } .grid-box { width:32%; margin: 0.65%; }

where the width of the grid sizer is equal to or greater than the width of the margins plus the grid box. so in this case, 0.65 + 32 + 0.65 = 33.3.

hope that makes sense.

@RTeran
Copy link

RTeran commented Jun 6, 2023

oh, I got it!
Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants