開発サイトでここに表示されている各画像の下に、画像テキストのキャプションを中央に配置するのに苦労しています: http://tinyurl.com/bh8uape
各キャプションを対応する画像の下の中央に配置したいと思います。これどうやってするの?
HTML
<!--/ Photo Thumbs Row 1-->
<div id="thumbs">
<a id="single_image" href="/bp/images/roscoes-run.jpg"><img src="/bp/images/roscoes-run(thumb).jpg" alt=""/></a>
<a id="single_image" href="/bp/images/roscoes-run-2.jpg"><img src="/bp/images/roscoes-run-2(thumb).jpg" alt=""/></a>
<a id="single_image" href="/bp/images/chicken-waffles.jpg"><img src="/bp/images/chicken-waffles(thumb).jpg" alt=""/></a>
<span class="stretch"></span>
</div>
<!--/ Description-->
<div id="desc-wrapper">
<div class="description">Roscoe's Run 2012</div>
<div class="description">Roscoe's Run 2012</div>
<div class="description">Roscoe's Run 2012</div>
</div>
<!--/ Photo Thumbs Row 2-->
<div id="thumbs">
<a id="single_image" href="/bp/images/mens-retreat-2012.jpg"><img src="/bp/images/mens-retreat-2012(thumb).jpg" alt=""/></a>
<a id="single_image" href="/bp/images/winter-retreat-2012.jpg"><img src="/bp/images/winter-retreat-2012(thumb).jpg" alt=""/></a>
<a id="single_image" href="/bp/images/new-years-eve-2012.jpg"><img src="/bp/images/new-years-eve-2012(thumb).jpg" alt=""/></a>
<span class="stretch"></span>
</div>
<!--/ Description-->
<div id="desc-wrapper">
<div class="description">Men's Retreat 2012</div>
<div class="description">Winter Retreat 2012</div>
<div class="description">New Year's Eve 2012</div>
</div>
CSS
/*Fancybox Gallery Divs*/
#thumbs {
width: 960px;
margin-top:20px;
margin-bottom:20px;
margin-left: auto;
margin-right: auto;
text-align: justify;
-ms-text-justify: distribute-all-lines;
text-justify: distribute-all-lines;
}
#thumbs a {
vertical-align: top;
display: inline-block;
*display: inline;
zoom: 1;
}
.stretch {
width: 100%;
display: inline-block;
font-size: 0;
line-height: 0
}
/*Descriptions*/
#desc-wrapper {
width: 960px;
padding-top: 10px;
margin-left: auto;
margin-right: auto;
text-align: justify;
-ms-text-justify: distribute-all-lines;
text-justify: distribute-all-lines;
}
.description {
width: 360px;
height: 25px;
}
あなたの助けに感謝します。