A
A
Artyom2018-09-23 22:18:33
css
Artyom, 2018-09-23 22:18:33

How to do this in flex-box?

5ba7e6e4caceb575987998.png
how to do this in flexbox?
let's say the content block is the main, and to the left and to the right of it there are 2 asides.
How to arrange them like that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BigSmoke, 2018-09-23
@danyvasnafig

<div class="container">
  <aside></aside>
  <aside></aside>
  <main></main>
  <aside></aside>
  <aside></aside>
</div>

.container {
  width:900px;
  height:200px;
  display:flex;
  flex-direction:column;
  flex-wrap:wrap;
}
aside {
  width:300px;
  height:100px;
}
main {
  width:300px;
  height:200px;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question