Skip to content
Advertisement

How to make label in st.multiselect bigger/bolder

I am looking to make the label of multiselect bigger / bolder, my code looks like this :

JavaScript

I have tried adding this :

JavaScript

from this page : https://discuss.streamlit.io/t/the-problem-changing-label-font-of-text-input-and-multi-select/23329

but all it does is display the text on my app like so : enter image description here

Am I doing this wrong? Could it be the streamlit version?

Advertisement

Answer

You should wrap the css in <style>. You can write both css in one markdown instead of having to repeat yourself.
Note: It’s a good practice to keep your code properly formatted, that will save you headache in the long run, when you are looking to refacture the code.

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement