0

Can someone help me to put checkbox on left side and label on right side?

https://code.sololearn.com/WPayuIncBdS4/?ref=app

7th Feb 2021, 11:06 PM
NUR ISLAM
NUR ISLAM - avatar
2 Respostas
+ 3
some css wich will do the trick: #cbox { text-align:right; } input[type="checkbox"]+label{ float:right; text-align:left; width:calc(100% - 105px); margin-left:5px; margin-right:0; }
7th Feb 2021, 11:27 PM
visph
visph - avatar
+ 2
NUR ISLAM easiest way that I know is to actually use the checkbox inside the label <br><label> <input type="checkbox" value="idk">&#160;Dont know why </label>
7th Feb 2021, 11:22 PM
BroFar
BroFar - avatar