eiriklv / react-masonry-component

A React.js component for using @desandro's Masonry
MIT License
1.44k stars 145 forks source link

Centering Masonry #107

Closed xih closed 5 years ago

xih commented 6 years ago

Hi,

I love the results from using this package ! Thanks for making it.

But I'm having trouble centering Masonry. I tried using flexbox and bootstrap to make the component horizontally centered but to no avail. This is how it looks on my macbook:

image

As you can see there is too much space on the left side. How can I fix this ?

Cheers

burt23 commented 6 years ago

I'm having the same exact issue, any help is greatly appreciated

mayankagarwal2402 commented 6 years ago

This solution here (https://github.com/eiriklv/react-masonry-component/issues/31#issuecomment-236036096) works fine.

erosenberg commented 5 years ago

@mayankagarwal2402 - this no longer works. Is there an update for this?