Aligning text to top left in a table #50671
-
|
Helllooo. Any help would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
Hey! |
Beta Was this translation helpful? Give feedback.
-
|
It is not possible to vertically align text to the top of a cell in a Markdown table on GitHub. This is because Markdown doesn't provide a way to control the vertical alignment of content within a cell. While you can use HTML and CSS to style the table, including aligning text to the left, right, or center, vertical alignment is not possible using Markdown on GitHub. To align, you can use: |
Beta Was this translation helpful? Give feedback.
-
|
Booooooooooo - ok thanks guys |
Beta Was this translation helpful? Give feedback.
-
|
While this does not seem to be possible using Markdown syntax, it is possible using HTML syntax inside Markdown and using <table>
<tbody>
<tr>
<td>
**OS**
</td>
<td>Debian 12 Bookworm</td>
</tr>
<tr>
<td valign="top">
**Databases**
</td>
<td>
* SalesDB
* StockDB
</td>
</tr>
</tbody>
</table>
Unfortunately, if you want to use Markdown inside the table cells, you must insert two newlines after |
Beta Was this translation helpful? Give feedback.
Hey!
I believe you are refering to Markdown tables? In that case you can only left-align, center or right-align the content of a cell. For more information you can visit: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet