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?

Thanks.
VB

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?

Best,
Randy

1 Like

Hey @randyzwitch - I know itโ€™s an old post, but I think I have an image which illustrates what @vbard was talking about

Screen Shot 2021-10-07 at 3.07.17 pm

Currently the option circle for the second option is aligned to the middle of the text for the second option. Iโ€™d be keen to have the choice of aligning it with the top of the text instead