Issue
I have an css style issue where textbox and the text are not alligned. Below is my code. I need help to fix this.
Thanks
<div>
<input
type="checkbox"
[checked]="section?.data?.allowMe"
class="pointer-events-none"
/>
<label class="ml-2 view-text" for="allMe"
>Allow LostOfData to be Seen</label
>
</div>
Solution
Use flexbox (https://css-tricks.com/snippets/css/a-guide-to-flexbox/):
div {
display: flex;
align-items: center;
}
Answered By - anom907 zat
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.