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

Centering items? #31

Closed
erosenberg opened this issue Feb 19, 2019 · 1 comment
Closed

Centering items? #31

erosenberg opened this issue Feb 19, 2019 · 1 comment

Comments

@erosenberg
Copy link

I want to be able to center the columns or at least change their justify-content value easily.
Is there a way to do this?

@paulcollett
Copy link
Owner

You can wrap your Masonry component with some divs that apply the centered layout to your needs. Maybe something like the following (translated into JSX of course)..

<div style="width: 100%;display:flex;justify-content:center">
  <div style="width:50%">
    <Masonry .... />
  </div>
</div>

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