I have table data that consists of and Icon followed by some text. The text height is less than the icon height, and the appearance is that the bottom of the icon is resting on the line drawn by the bottom of the text. I have with HTML and embedded CSS style statements been able to accomplish an alignment where the two entities seemed aligned vertically.
<table style="width: 100%;" border="0">
<tbody>
<tr>
<td style="vertical-align: middle;"><img style="vertical-align: middle;" src="
https://tiddlywiki.com/favicon.ico" alt="" /><strong>My favorite</strong> (1)</td>
</tr>
</tbody>
</table>
I have not figured out how to achieve this alignment in TiddlyWiki table cells.
This is the example of what I have with no adjustments:
|itemName|k
| Created from the following Recipe(s) |<|<|<|h
| <div class="cell craftingTableName">Blacksmith's Bench</div> |<|<|<|
|!Ingredients |!Produces | !Crafting Time | !XP Gained |
|Abysmal Eye (1) | {{Abysmal Daggers Icon External}} Abysmal Daggers (1) | ? | ??? |
|Branch (5) |~|~|~|
|Iron Bar (10) |~|~|~|
|Thick Leather (5) |~|~|~|
| |[img[
https://tiddlywiki.com/favicon.ico]] text | | |
The CSS I have added to get that output is:
center { display:block; text-align:center; }
.itemName thead td { background-color:brown; color:white; font-size:150%; }
.craftingTableName { background-color:green; color: yellow; font-size:130%; Padding:0; margin: 0, auto; }
.cell { /* compensating the cell padding */ margin:-1px -7px; padding:1px 7px; }
The tables get a bit busy with a single cell having a few of these kind of elements stacked vertically using <p> to cause the line breaks.
Thank you.