案外忘れるボックス内で位置を調整できるボックスの書き方
わすれる(笑)
外側の DIV BOX は、
position: relative;
height:256px;
width:256px;
と、相対位置指定とサイズ。
内側の DIV VOX は、
position:absolute;
top: 30%;
left:30%
と、絶対位置指定と位置指定が必要。
<div style="position: relative; height:256px; width:256px;">
<div style="position:absolute;top: 30%; left:30%">表示文字</div>
</div>
表示文字
外が、position: relative
内が、position: absolkute
忘れないようにw
スポンサーリンク