Oterox
6/12/2019 - 5:54 PM

Flex 2 columns

Flex 2 columns

<body>
  <div class="row">
  <div id="left" class="column">
    LEFT
  </div>
  <div id="right" class="column">
    RIGHT
  </div>
    </div>
</body>
body,html {
  height: 100%;
  padding: 0;
  margin:0;
}
#left {
  background-color: #bebebe;
  flex-basis: 55%;

}
#right {
  background-color: #cecece;
  flex-basis: 45%;
  
}
.row {
  height:100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.column {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 992px){
  .column {
    flex-basis: 100% !important;
  }
}