コレ
.lv1 {
width: 400px;
height: 400px;
position: relative;
}
.lv2 {
width: 200px;
height: 240px;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
margin: auto;
}
なぜ中央に寄るのか?
CSS basic box model - 幅、高さ、マージンの計算 - 絶対配置された非置換要素
以下全部足したのが包含ブロックの高さと等しくなる
以下全部足したのが包含ブロックの幅と等しくなる
top、bottomは0
left、rightは0