J
J
John Gault2015-06-22 13:25:32
css
John Gault, 2015-06-22 13:25:32

Vertical spacing between lines of flexbox boxes?

Item: 5ad856d28bc1462c9beba35c9fd4daa3.png
Code:

<div class="nursery-content">
            <div class="el"></div>
            <div class="el"></div>
            <div class="el"></div>
            <div class="el"></div>
            <div class="el"></div>
            <div class="el"></div>
        </div>

.nursery-content{
    .flex-prefix;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 50px;
    height: 800px;
    border: 1px solid black;
      .el{
        margin-top: 50px;
        width: 300px;
        height: 200px;
        background-color: #123;
      }
  }

Question: how to change the distance between the lines of the blocks (indicated by the red arrows)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valery, 2015-06-22
@Fargal_1

align-content: flex-start
more

X
xmoonlight, 2015-06-22
@xmoonlight

jsfiddle.net/eng40o7n/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question