0

私は本当に素晴らしいグリッドのような効果を持つテーマを使用しています。td の通常の量は 5 です。ただし、セクションによっては 2 つしか必要ない場合もあれば、それ以上必要な場合もあります。必要な量を入れると、箱が大きすぎたり小さすぎたりすることがあるので、それらをすべて同じサイズにできるようにしたいと思います。これが CSS です。他に何か必要な場合はお知らせください。

body {background-color:#cccccc; color:#000000; font:16px Arial, sans-serif; word-wrap:break-word; width:100%; height:100%; margin:0; padding:0;}
a {text-decoration:underline; color:black;}
a:hover {text-decoration:none;}
#wrappper {background-color:#ffffff; width:600px; margin:60px auto; padding:0 50px 50px;}
#title {background-color:#000000; color:#ffffff; text-align:center; text-transform:uppercase; padding:20px 0; margin:0 -50px 20px;}
table {width:100%; border-collapse:collapse;}
table th {font-size:20px; padding:24px 0 8px; text-transform:uppercase; text-align:left;}
table td {vertical-align:center; padding:4px 1px;}
table table {width:300px; height:50px;}
table table td {border:solid 1px #000000; width:50px; height:50px; padding:0;}
table table td img {display:block; border:0; max-width:30px; max-height:30px; width:auto; height:auto; margin:auto;}
#credit {border-top:solid 2px black; margin-top:40px; padding-top:20px; text-align:center; font-size:12px;}

そして、私が信じているコルスパンがここにあります...

<table>
<col width="auto"><col width="150px"><col width="150px">

<tr><th colspan="2">

jsFiddle: http://jsfiddle.net/Zorabelle/sYJKt/

4

1 に答える 1