Custom CSS#
You can change the global CSS used to render the tables
by either passing a custom CSS to the show
function, or by
changing opt.css
.
Note that the CSS must be the same for all the tables
in a given notebook. To change the CSS for just one table,
use the style
argument of the show
function.
from itables import init_notebook_mode, show
from itables.sample_dfs import get_countries
import itables.options as opt
opt.css = """
.itables table td { font-style: italic; }
.itables table th { font-style: oblique; }
"""
init_notebook_mode(all_interactive=True)
get_countries()
region | country | capital | longitude | latitude | flag | |
---|---|---|---|---|---|---|
code | ||||||
Loading... (need help?) |