score:1

Accepted answer

if you want to achieve two equal boxes sets display:flex to parent and add children width: 50%.

.flex {
  display: flex;
}
#container {
  width: 50%;
}
.spacer {
  width: 50%;
  height: 500px;
  background-color: red;
}

demo: https://jsfiddle.net/blacklabel/46o7venk/


Related Query

More Query from same tag