im struggling to make radio buttons /checkboxes and labels in line
i searched this forum for the answers and tried some answers from google but without any luck
please help (i know the whole code is a mess pls dont judge me im just a begginer)
this is the link to it https://codepen.io/BM6987/pen/WNELgNqhttps://codepen.io/BM6987/pen/WNELgNq
Thanks but what i meant is that the radio and checkboxes are not level with the labels , i dont want them to be all in one line . however your solution looks ok when applied to radio type but it doesnt with checkboxes
The “display: block” makes the radio button a block element , so it starts on a new line and takes up the whole width. In addition, the width is set to 90% for all inputs.
After commenting out those lines, surround the the label and input with a “div” and you should get the desired effect.
Removing those CSS lines will remove some of the styles to the rest of the survey, so you may need to put those back in with specific classes.