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

Any way to center childrens? #69

Closed
h1sashin opened this issue Jan 6, 2021 · 2 comments
Closed

Any way to center childrens? #69

h1sashin opened this issue Jan 6, 2021 · 2 comments

Comments

@h1sashin
Copy link

h1sashin commented Jan 6, 2021

I tried using justify-content: space-around and center, doesn't work. Is there any prop that can center my divs?

@BanJoeH
Copy link

BanJoeH commented Mar 18, 2021

this worked for me :

.container {
  width: 100%;

  .my-masonry-grid {
    display: flex;
    margin-left: -20px;
    width: 100%;

    .my-masonry-grid_column {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-left: 30px;
      background-clip: padding-box;
    }
  }
}

@paulcollett
Copy link
Owner

Correct, column alignment or children in the columns can be achieved with CSS flexbox rules

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

3 participants