* { box-sizing:border-box; } .div1 { display:table; border:1px solid #06c; padding:30px 50px; width:100%; height:200px; background:aqua; } .div2 { border:1px solid red; display:table-cell; vertical-align:middle; background-color:#4679bd; }