Div boxes not aligning properly using inline-block

前端 未结 2 1737
难免孤独
难免孤独 2021-02-18 18:11

I have some very simple code which works perfect for what look I\'m trying to achieve. I have two divs which are displayed as \"boxes\" which are contained within an outer div w

2条回答
  •  失恋的感觉
    2021-02-18 18:50

    Since the boxes are already inline-block you can add vertical-align: top to the .box style.

提交回复
热议问题