17

I have a juptyer notebook with a markdown cell

# Projects

<div style="font-size: 50px">

hello

| Project                      |Project Type       | Status                |
|------------------------------|-------------------|-----------------------|
|   Hello phase 1              |ABC                |Ongoing                |
|   Goodbye analytics          |EFG                |Completed              |

</div >

But it does not increase the font size of the words inside the table, and it only increases the font size of "Hello".

Is it possible to increase the font size of the words inside the table? Thanks.

Michael
  • 1,398
  • 5
  • 24
  • 40

3 Answers3

16

For jupyter-notebooks you can use the %%HTML magic. Place the code below inside a notebook code cell:

%%HTML

<style>
td,th {
  font-size: 15px
}
</style>

Depending on your jupyter version, other approaches might work.

NewNewton
  • 1,015
  • 1
  • 10
  • 22
mb21
  • 34,845
  • 8
  • 116
  • 142
3

You may try this: Add html tag inside the cells which is annoying but useful for now

for example

|&#60;font size=4&#62;Project&#60;/font&#62;|&#60;font size=4&#62;Project Type&#60;/font&#62;|&#60;font size=4&#62;Status&#60;/font&#62;|<br>
|---|---|---|<br>
|&#60;font size=4&#62;Hello phase 1&#60;/font&#62;|&#60;font size=4&#62;ABC&#60;/font&#62;|&#60;font size=4&#62;Ongoing&#60;/font&#62;|<br>
|&#60;font size=4&#62;Goodbye analytics&#60;/font&#62;|&#60;font size=4&#62;EFG&#60;/font&#62;|&#60;font size=4&#62;Completed&#60;/font&#62;|
Yoel
  • 7,555
  • 6
  • 27
  • 59
Leon Wang
  • 188
  • 1
  • 7
2

You can also add it in custom.css:

.rendered_html table, .rendered_html td, .rendered_html th {
    font-size: 200%;
}

I also think you should be able to do it with just the table element (omitting the td and th elements).

RRahaman
  • 41
  • 3