[問題] 第二層Div的文字置中
<div id="div1" class="test" style="backgroud>
<div id="div2">This is the word</div>
</div>
想請教要讓div2的文字水平方向是置放在div1的中間
然後垂直方向是低於div1 200px
CSS該怎麼下才好?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 59.124.165.66
※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1476870984.A.FA4.html
推
10/19 20:06, , 1F
10/19 20:06, 1F
→
10/19 20:06, , 2F
10/19 20:06, 2F
推
10/20 14:35, , 3F
10/20 14:35, 3F
→
10/20 14:35, , 4F
10/20 14:35, 4F
推
10/20 14:39, , 5F
10/20 14:39, 5F
→
10/20 14:45, , 6F
10/20 14:45, 6F