非常に基本的な画像ギャラリーがあります。3列×2行に修正するにはどうすればよいですか。
これはHTMLコードです
<div id="gallery">
<div class="img">
<a target="_blank" href="klematis_big.htm"> <img src="../zeela/img/image_1.png" alt="Klematis"/> </a>
<div class="descHead">
כותרת
</div>
<div class="desc">
Add a description of the image here
</div>
</div>
<div class="img">
<a target="_blank" href="klematis2_big.htm"> <img src="../zeela/img/image_1.png" alt="Klematis" /> </a>
<div class="descHead">
כותרת
</div>
<div class="desc">
Add a description of the image here
</div>
</div>
<div class="img">
<a target="_blank" href="klematis3_big.htm"> <img src="../zeela/img/image_1.png" alt="Klematis" /> </a>
<div class="descHead">
כותרת
</div>
<div class="desc">
Add a description of the image here
</div>
</div>
<div class="img">
<a target="_blank" href="klematis4_big.htm"> <img src="../zeela/img/image_1.png" alt="Klematis" /> </a>
<div class="descHead">
כותרת
</div>
<div class="desc">
Add a description of the image here
</div>
</div>
<div class="img">
<a target="_blank" href="klematis4_big.htm"> <img src="../zeela/img/image_1.png" alt="Klematis" /> </a>
<div class="descHead">
כותרת
</div>
<div class="desc">
Add a description of the image here
</div>
</div>
<div class="img">
<a target="_blank" href="klematis4_big.htm"> <img src="../zeela/img/image_1.png" alt="Klematis" /> </a>
<div class="descHead">
כותרת
</div>
<div class="desc">
Add a description of the image here
</div>
</div>
</div>
これはCSSコードです
#gallery {
}
div.img {
マージン:2px;
高さ:自動;
幅:自動;
フロート:右;
}
div.img img {
幅:200px; /*imgサイズはいくつですか*/
高さ:200px;
表示:インライン;
マージン左:30px;
マージン右:30px;
マージンボトム:20px;
ボーダー:1pxソリッド#ffffff;
}
/ *
div.img a:hover img {
ボーダー:1pxソリッド#0000ff;
} * /
div.desc {
text-align:center;
フォントの太さ:通常;
幅:120px;
マージン:30px;
}
.descHead {
マージン右:30px;
マージントップ:20px;
マージンボトム:15px;
フォントファミリー:Tahoma;
フォントサイズ:24px;
色:#323232;
}
.desc {
margin-right:30px!important;
margin-bottom:40px!important;
フォントファミリー:Tahoma;
フォントサイズ:14px;
色:#323232;
}