私はシンプルgrid
で、で作成しましたcss
#videowall-grid{
width:700px;
border:1px dotted #dddddd;
display: none;
margin: 5px auto;
padding: 5px;
}
#videowall-grid .square{
padding: 5px;
margin: 5px;
border: 1px dashed #dddddd;
width: 70px;
height: 70px;
display: inline-block;
text-align: center;
<div id="videowall-grid" style="display: block;"><div class="row">
<div id="1_1" class="square">8</div><div id="1_2" class="square">373</div><div id="1_3" class="square">1</div><div id="1_4" class="square">111</div></div><div class="row">
<div id="2_1" class="square">318</div><div id="2_2" class="square">319</div><div id="2_3" class="square">321</div><div id="2_4" class="square">button</div></div><div class="row">
<div id="3_1" class="square">234</div><div id="3_2" class="square">button</div><div id="3_3" class="square">button</div><div id="3_4" class="square">button</div></div></div>
http://jsfiddle.net/nonamez/upHjg/
center
では、親の内側の四角形と四角形の中にテキストを入れる方法はdiv
?