Reputation: 467
How do I change the text size inside a single bokeh Div widget without changing the text size of other Divs in my app? (https://docs.bokeh.org/en/latest/docs/reference/models/widgets.markups.html)
Upvotes: 4
Views: 8554
Reputation: 342
In case of use of a bokeh server, you can also use css_classes = [] to add CSS class with definition in your css file
some_div = Div(text="<b>A Title</b>", css_classes=["my_div", "custom_css_class"])
Upvotes: 1
Reputation: 281
Div takes a style argument in which you can put a dictionary filled with normal html styling, eg:
some_div = Div(text="<b>A Title</b>", style={'font-size': '200%', 'color': 'blue'})
Upvotes: 16