K
K
kikosko2018-11-01 14:55:55
Layout
kikosko, 2018-11-01 14:55:55

How to center elements in "Flex Layout"?

tell me how to center the elements so that they are one under the other. using Flex Layout
I need the bottom three to be symmetrical under the top elements

<div fxLayout="row wrap"
     fxLayoutGap="30px"
     fxLayoutAlign="center start">
    <mat-card class="card" *ngFor="let pic of collection;">
        <mat-card-content>
         // other code //

.card {
    max-width: 210px;
    margin-bottom: 10px;
}

5bdae9af412ab003084538.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dies Irae, 2018-11-01
@YumeReaver

Use justify-content: center;
Or maybe justify-content: space-between;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question