Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !6577

Radio buttons and checkboxes styled for <input type="radio" /> and <input type="checkbox" />

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/brenoferreira/2.3.0-wip into 2.3.0-wip Jan 14, 2013
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 5

Created by: brenoferreira

Radio buttons and checkboxes with and styled in the same way as the ones using markup.

Tested with:

  • Chrome 23
  • Firefox 18
  • IE 9

Example:

<div class="btn-group">
  <input type="checkbox" checked id="checkbox_1" value="1" />
  <label class="btn btn-primary" for="checkbox_1">Checkbox one</label>
  <input type="checkbox" id="checkbox_2" value="2" />
  <label class="btn btn-primary" for="checkbox_2">Checkbox two</label>
  <input type="checkbox" disabled id="checkbox_3" value="3" />
  <label class="btn btn-primary" for="checkbox_3">Disabled checkbox three</label>
</div>
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/brenoferreira/2.3.0-wip