Home › Forums › CSS › help with aligning a title under an image › Re: help with aligning a title under an image
February 27, 2009 at 1:35 pm
#54377
Soh Tanaka
Member
You can create this layout using an unordered list, with each list item floating left.
To get your vertical alignment of the text, you can do something like:
Code:
HTML
-
705
CSS
ul.prod_list li img {
display: block;
margin: 0 auto;
}
ul.prod_list li span {
text-align: center;
height: 30px;
line-height: 30px;
}
I have not tested the code at all, but this would be my approach~