Radio button with more padding between the options

Hi all,

I was wondering if you could help me with some tweaks to the radio button. I was asked to a couple of things:

  1. to space out the options, i.e. have more blank space between the options
  2. to align the option circle to the first line of the option answer, rather than having it in the middle.

Could you please advise how feasible these are?


Hi @vbard, welcome to the Streamlit community!

For your first question, here’s a way you can provide arbitrary CSS, which you can use to modify the radio-button selector (you’ll need to use developer tools in the browser to find the exact selector to modify):

I’m not sure I understand the second question, could you provide a picture or a link to a site that does what you want?


1 Like