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

I need help creating a border around a checkbox form

I know it can be done like the image above but I cant figure out how to make the 1px solid black border stop when it hits the

and skip going through it like in the image above.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 :

You can create a visually organized and accessible form using the fieldset element.

The legend element is used to provide a caption for the group of form controls.

<fieldset>
    <legend>Gender</legend>
    <input type="radio" name="gender" value="male" id="male">
    <label for="male">Male</label>
    <input type="radio" name="gender" value="female" id="female">
    <label for="female">Female</label>
</fieldset>

Experience it yourself by visiting this interactive example:

https://www.tutorialrepublic.com/codelab.php?topic=html&file=fieldset-tag

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