From 4245e8ebb5c98ca1a89b7b56578d4fe52ee81802 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 9 Dec 2012 22:13:40 -0800 Subject: Fix checkbox and radios example --- docs/css.html | 60 +++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 36 insertions(+), 24 deletions(-) (limited to 'docs/css.html') diff --git a/docs/css.html b/docs/css.html index d7852ed2c..87c8d4f85 100644 --- a/docs/css.html +++ b/docs/css.html @@ -1185,34 +1185,46 @@ For example, <code><section></code> should be wrapped as inlin

Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.

Default (stacked)

- +
+ +

- - +
+ +
+
+ +
-<label class="checkbox">
-  <input type="checkbox" value="">
-  Option one is this and that—be sure to include why it's great
-</label>
+<div class="checkbox">
+  <label>
+    <input type="checkbox" value="">
+    Option one is this and that—be sure to include why it's great
+  </label>
+</div>
 
-<label class="radio">
-  <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
-  Option one is this and that—be sure to include why it's great
-</label>
-<label class="radio">
-  <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
-  Option two can be something else and selecting it will deselect option one
-</label>
+<div class="radio">
+  <label>
+    <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
+    Option one is this and that—be sure to include why it's great
+  </label>
+</div>
+<div class="radio">
+  <label>
+    <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
+    Option two can be something else and selecting it will deselect option one
+  </label>
+</div>
 

Inline checkboxes

-- cgit v1.2.3