List is <a>
links with some elements inside <a>
. All <a>
links to internal website pages. How to make it look like a table? Is it possible?
Thumbnail column | Term column | Description column |
---|---|---|
thumbnail_1 | term_1 | description_1 |
thumbnail_2 | term_2 | description_2 |
<ul>
<li>
<div>thumbnail column</div>
<div>term column</div>
<div>description column</div>
</li>
<li>
<a href="link_1">
<img src="src_thumbnail_1" alt="thumbnail_1">
<div>term_1</div>
<div>description_1</div>
</a>
</li>
<li>
<a href="link_2">
<img src="src_thumbnail_2" alt="thumbnail_2">
<div>term_2</div>
<div>description_2</div>
</a>
</li>
</ul>
2
Answers
To give your layout a table look one solution is too use the
table
th
andtd
elements on your current html.For more info check table
This will give you the basic structure for your table. To give the table a visual look of a basic table, you could use CSS. For example, adding
border: 1px solid #ddd;
to your table cells will give it the look of lines inside a table.The results will be something like this:
From this point on you can customize your table look farther.