radio and checkbox are class of li element and li element is list-item element by default, so you should give it display:block; to make it block leave an element, maybe i could be wrong i am new to css
Basically yes. The input is inline-block so setting it to block will make the element take up the full with of the container.
But in the case of the example project .radio is actually being applied to an <li> and as you probably already know each <li> already takes up its own line (otherwise it wouldn’t really be a list item). What it does do (changing it from the default display: list-item to display: block) is remove the bullet point from the <li>. But that is actually a bit redundant because the <ul> already has an inline style on it which is removing the list style (the project should really be fixed and not have inline styles).
I would suggest always just testing stuff. Open up a Codepen and try it out.
Thank you so much for your words. I understood it at last.
And I didn’t notice that in the example project, < li > has radio and < input > inside.
I experimented your example with codepen. Thank you so much.
So I think I can remove display: block; from .radio, checkbox.
I checked it with Codepen.
It’s because the bullet point from the < li > is removed by putting setting < input > inside < li >.