Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

Underline an html.H3 element in dash

Hi all,

I am trying to underline an html.H3() title in dash. My heading looks as such:

html.H3(‘Distributions’, style={‘font-size’: ‘20px’})

How do I underline this title?

You can just add another argument to the style dictionary:

html.H3(
    "Distributions",
    style={"font-size": "20px", "text-decoration": "underline"},
)

See here for more details.