search

Home  >  Q&A  >  body text

html5 - Why does the second flex immediately follow the first flex container?

Question: How can the second flex be moved behind the first flex container?

navbar code

.navbar {
  height: 60px;
  width: 100%;
  padding: 4px;
  box-sizing: border-box;
  display: flex;

  .theme;
  .green-border;
}

container code

.container {
  display: flex;

  .make-col(@max-col-num);
  .make-col-offset(@max-col-num);
}
淡淡烟草味淡淡烟草味2825 days ago1611

reply all(2)I'll reply

  • 大写字母H

    大写字母H2017-07-01 18:42:07

    flex-direction: colum;?

    reply
    0
  • 漂亮男人

    漂亮男人2017-07-01 09:14:21

    .container is a flex container, .navbar and .main are both flex containers and flex items

    reply
    0
  • Cancelreply