Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

CSS issue, text and checkbox not aligned

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>

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Use flexbox (https://css-tricks.com/snippets/css/a-guide-to-flexbox/):

div {
    display: flex;
    align-items: center;
}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading