dcc.Graph: how to split the title on several rows / force break line

Hello there,

On small screens, my titles (dcc.Graph) are too long. How can I force the line to break ? I tried flex, whitespace, word break, display flex, block, etc etc etc etc, and probably at least half of the possible CSS properties. Nothing works.:face_with_monocle:


1 Like

Could you maybe try adding in a <br> when you define the graph title?


@shammamah Thanks, it worked! So simple :smiley:
Was trying to escape the html tag but there is actually no need. I just added <br> in the middle of my title and it worked :smiley:

1 Like

Hi, happy to read your question. And, do you know how to apply different fonts for different line?