Div widget markup, text not wrapping up

I’m facing some issue with div text wrapping

I’ve some large text which are dynamically changed based on selection. I’ve set width of div, but it still is overshooting in a single row. Am i missing anything?
div = Div(max_width=20)


If this is the offending Div model in your screenshot

an issue could be that there is nowhere that the string can be broken to affect a wrap according to the default string-break rules. You can try adding whitespace at natural places if that works for your use case or you could pass CSS style options to the bokeh Div as a dictionary. One example might be

div = Div(..., style={'overflow-wrap': 'break-word'})

where the ellipses are the other settings you want to specify for the model.