Unique Tailwind solution
To achieve the desired result using Tailwing, consider the following code:
<label class="flex">
<input class="ml-2 mr-1 mb-1 mt-1 inline-block" data-id="{{inputDataId}}" type="checkbox" class="{{class}}" {% if required %} required {% endif %}>
<span class="text-sm inline-block">
sdfsd fsd fsd fsdfds fsdf sdf s fsdfsdf
</span>
</label>
Unique Custom CSS solution:
If you position your label tag with flex positioning, you can easily align the input and text vertically by using "align-items: flex-start;" :
<label class="my-label-class">
<input class="ml-2 mr-1 mb-1 inline-block" data-id="{{inputDataId}}" type="checkbox" class="{{class}}" {% if required %} required {% endif %}>
<span class="text-sm inline-block">
{{label}}
</span>
</label>
.my-label-class {
display: flex;
align-items: flex-start;
}
Unique Bootsrap solution
Alternatively, if you utilize Boostrap classes, you can switch out your Label tag classes with Boostrap ones:
<label class="d-flex align-items-start">
This will align your input and text to the top.
You have the option to center them using "align-items-center"