OK... Never mind the above. I just had a play with the code on the def. list site.
He's putting each item within its own 'dl class="gallery" ' to get these to display inline.
I just tried it and it worked like a charm.
Much easier than what I've concocted in the past!
dl.gallery {
border: 1px solid #000;
background-color: #ddd;
width: 102px;
text-align: center;
padding: 10px;
float: left;
margin-right: 1em;
}
.gallery dt { font-weight: bold; }
.gallery dt img
{
border: 1px solid #000;
width: 45px;
height: 45px;
}
.gallery dd
{
margin: 0;
padding: 0;
}
-----------------------------------------------
<dl class="gallery">
<dt><img src="images/apple.png" width="38" height="40" alt="" ></dt>
<dt>Apple</dt>
<dd>Description here</dd>
</dl>
<dl class="gallery">
<dt><img src="images/gift-small.png" width="43" height="40" alt="" ></dt>
<dt>Gift Box</dt>
<dd>Description here</dd>
</dl>
<dl class="gallery">
<dt><img src="images/comfy-chair.png" width="46" height="42" alt="" ></dt>
<dt>Big Chair</dt>
<dd>Description here</dd>
</dl>
Try getting rid of this:
h1.photo1 {
width: 25%;
height: auto;
}
(Since there's already css for the image above.)