0

enter image description here

As you can see, that box has less height and I wanted the bottom one to stack with it, is it possible to do it? Any help will be appreciated.

This is the css I have:

<style>
div{
  display: inline-block;
  margin:0;
  position:relative;
  top:0;
  border:1px solid black;
}
</style>
I_like_trains
  • 236
  • 1
  • 4
  • 16

1 Answers1

2

Just use flex's rule align-items: center.

See this article for more details.

Ivan
  • 34,531
  • 8
  • 55
  • 100
Davit Yavryan
  • 180
  • 1
  • 10
  • This doesn't answer the question and link only answers are not allowed. Either use information from the link to form your own answer or delete this altogether. https://stackoverflow.com/help/how-to-answer – Rob Sep 01 '17 at 12:18