Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Checkbox without Label #93

Open
jarrod-microsoft opened this issue Aug 19, 2015 · 1 comment
Open

Need Checkbox without Label #93

jarrod-microsoft opened this issue Aug 19, 2015 · 1 comment
Labels

Comments

@jarrod-microsoft
Copy link
Contributor

Currently there is no option to have a checkbox or radio button without attaching it to a label.

@blustemy
Copy link
Contributor

You can use an empty <span> inside the <label>:

<div class="checkbox">
    <label>
        <input type="checkbox" />
        <span></span>
    </label>
</div>

But you're right the styling of the checkbox or radio is linked to the <span> just after. A CSS trick to display custom styling instead of the native checkbox and radio elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants