どのようにして4つのボタンをそれぞれのdiv内に縦横に配置することができますか?2つのdiv内の中心要素を垂直方向に
更新:いいえFlexboxしてください。私はその贅沢はありません。
#outer {
width: 400px;
height: 200px;
background-color: black;
display: table-cell;
}
#innerOne {
width: 400px;
height: 100px;
background-color: red;
vertical-align: middle;
}
#innerOne {
width: 400px;
height: 100px;
background-color: blue;
vertical-align: middle;
}
<div id="outer">
<div id="innerOne">
<button>One</button>
<button>Two</button>
</div>
<div id="innerTwo">
<button>Three</button>
<button>Four</button>
</div>
</div>
私は "1"、 "2" は、垂直方向と水平方向青のdivの内側中心になりたいです。黒いdivの "three"と "four"と同じです。
私は望む効果がなくても、テーブルとテーブルセルの表示を設定することで、さまざまなオプションを試しました。