S
S
Sys_loc2019-10-22 15:06:28
css
Sys_loc, 2019-10-22 15:06:28

How to properly arrange the sides in flexbox?

Good afternoon, help me make responsive blocks in flexbox.
5daef04254680530840780.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
NaN, 2019-10-22
@KornevaViktoria

https://codepen.io/ViktoriaKorneva/pen/jOOyXEj

A
Andrej Sharapov, 2019-10-22
@Madeas

<div class="flex">
  <div class="block">1</div>
  <div class="block">
    <div class="flex column">
      <div class="block">2</div>
      <div class="block">3</div>
    </div>
  </div>
</div>

<style>
  .flex {
    display: flex;
  }

  .column {
    flex-direction: column;
  }
  
/* для демо */
  .block {
    min-width: 100px;
    min-height: 100px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
  }

</style>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question