I have a query about aligning a label and text side by side horizontally. How can I adjust their alignment to center the text within the label rather than at the bottom of it?
Below is my current HTML code:
<div>
<label class="switchnmn">
<input type="checkbox" checked>
<div class="slidernmn round"></div>
</label>
<b style="font-size:15px">I am able to accept customer's any request date.</b>
</dlv>
And here is the corresponding CSS:
.switchnmn {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.switchnmn input {display:none;}
/* Other styles for switchnmn and slidernmn classes */
.slidernmn.round:before {
border-radius: 50%;
}
Can you guide me on where I should make the necessary changes to achieve the desired alignment?