stoyanmkd

Checkbox_example

Sep 17th, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.20 KB | None | 0 0
  1. <!Doctype HTML>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>Test</title>
  6.         <link rel="stylesheet" type="text/css" href="styles.css">
  7.         <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
  8.         <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  9.         <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
  10.     </head>
  11.     <body>
  12.         <h2 class="page-header">Pure css checkbox radio UI
  13.             <small>Based on bootstrap layout</small></h2>
  14.  
  15.             <!-- uses a span after the input -->
  16.  
  17.             <div class="checkbox">
  18.               <label>
  19.                 <input type="checkbox" value="">
  20.                 <!-- override icon here -->
  21.                 <span class="glyphicon glyphicon-ok"></span>
  22.                 Option one is this and that&mdash;be sure to include why it's great
  23.               </label>
  24.             </div>
  25.             <div class="checkbox">
  26.               <label>
  27.                 <input type="checkbox" value="" checked disabled>
  28.                 <span></span>
  29.                 Option two checked disabled
  30.               </label>
  31.             </div>
  32.             <div class="checkbox">
  33.               <label>
  34.                 <input type="checkbox" value="" disabled>
  35.                 <span></span>
  36.                 Option three disabled
  37.               </label>
  38.             </div>
  39.  
  40.  
  41.             <div class="radio">
  42.               <label>
  43.                 <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
  44.                 <span></span>
  45.                 Option one is this and that&mdash;be sure to include why it's great
  46.               </label>
  47.             </div>
  48.             <div class="radio">
  49.               <label>
  50.                 <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
  51.                 <span></span>
  52.                 Option two can be something else and selecting it will deselect option one
  53.               </label>
  54.             </div>
  55.             <div class="radio">
  56.               <label>
  57.                 <input type="radio" name="optionsRadios2" id="optionsRadios3" value="option3" disabled>
  58.                 <span></span>
  59.                 Option three disabled
  60.               </label>
  61.             </div>
  62.             <div class="radio">
  63.               <label>
  64.                 <input type="radio" name="optionsRadios2" id="optionsRadios4" value="option4" checked disabled>
  65.                 <span></span>
  66.                 Option four checked disabled
  67.               </label>
  68.             </div>
  69.             <p>Switch</p>
  70.             <label class="switch">
  71.               <input type="checkbox" name="" id="" />
  72.               <span></span>
  73.             </label>
  74.     </body>
  75. </html>
Advertisement
Add Comment
Please, Sign In to add comment