0
I’m trying to put the label of the checkbox to his left, but I’m not getting it, could help me ?
<label>
<span>Text goes here</span>
<input type="checkbox" class="checkbox style-2 " checked="checked">
</label>
Try it this way, but it still doesn’t work, it only works when I leave the label below the input, but that way he puts the checkbox to the right of label and in the precise case the left.
As in the image below:
Why don’t you take the input from within the label and put the label before.
– LeAndrade
Because the input is not appearing from there
– Matheus
Matheus, do you want to put "Text Goes here" on the left side of the checkbox? It already happens. If you’re on the right side, just invert the span line with the input line. <label> <input type="checkbox" class="checkbox style-2 " checked="checked"> <span>Text Goes here</span> </label>
– cpll
Yes here is happening, but when I put in my application is not occurring, on the left the input does not appear, but on the right side it appears, it is very strange.
– Matheus
You are using frameworks like Bootstrap, Materialize, etc..??
– LeAndrade
I am using Bootstrap @Leandrade
– Matheus
Your code does not reproduce what is described in the problem, it would be important a [mcve] to be able to remedy the doubt. Click on the link I just passed, which has some interesting tips on how to make a valid example.
– Bacco