Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use smaller font size in a GitHub table?

How to use a smaller font size in a GitHub readme.md?

I am trying to figure out how to use smaller text in the GitHub readme.

More specifically, I created a table and I want the font size to be smaller for this table.

I saw somewhere people recommended to use which I tried and does not work.

Table:

| Embedding       | Script        |
|-----------------|---------------|
| word2Vec        | abc.sh        |
| code2Vec        | cde.sh        |

The intention is to make the font size for the complete table smaller.

Can anyone please advise me what's the workaround?

like image 675
Exploring Avatar asked Dec 06 '25 04:12

Exploring


2 Answers

If you layer them like this, <sub><sup>combining the two tags</sup></sub>, you get tiny text that's almost in line with the normal text. Nice for making very small caveats to your answers!

like image 199
Astro Avatar answered Dec 09 '25 04:12

Astro


Github doesn't allow inline-styles or classes. A workaround is to wrap sub tag around each element.

Embedding Script
word2Vec abc.sh
code2Vec cde.sh
like image 36
naveen Avatar answered Dec 09 '25 06:12

naveen