Using the css style below will display a list of anchor tag horizontally.
But, I cannot seem to get the image and text to display veritcally in each list item. Any suggestion on how to do that.
Thank you
My solution to the problem
<html>
<head>
<style type="text/css">
li
{
display:inline;
}
table
{
display:inline;
}
</style>
</head>
<body>
<ul>
<li>
<table>
<tr><a href="#"><img /></a></tr>
<tr><a href="#">one</a></tr>
</table>
</li>
<li>
<table>
<tr><a href="#"><img /></a></tr>
<tr><a href="#">two</a></tr>
</table>
</li>
<li>
<table>
<tr><a href="#"><img /></a></tr>
<tr><a href="#">three</a></tr>
</table>
</li>
<li>
<table>
<tr><a href="#"><img /></a></tr>
<tr><a href="#">four</a></tr>
</table>
</li>
<li>
<table>
<tr><a href="#"><img /></a></tr>
<tr><a href="#">five</a></tr>
</table>
</li>
</ul>
</body>
</html>
You could add
<br />before the text, like this:And change the CSS to this: