How can you get the input text to be directly next to the radio button? Help is much appreciated

Hi,

I have tried to find the solution but nothing seems to fix the issue. Here is the html code of my radio group, which css property makes the text go next to the radio button (on the same line)?

input type=“radio” value=“Hell yeah” checked name=“helpedanswer”>Hell Yeah</input.

You should use the “label” tag, so your code should be like :

<input type="radio" value="Hell yeah" checked="" name="helpedanswer">Hell Yeah
</input><label for="helpedanswer"> hi there</label>

and will look like:
image

Got it, thanks man! i couldn’t find this online

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.