diff --git a/includes/form.inc b/includes/form.inc index 3f0a117b1cbd77281e86d2f6d1686d9d29626cd2..686a88b69d3a733ea63beee23ff22a8e575563e9 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -943,6 +943,7 @@ function theme_radio($element) { * A themed HTML string representing the radio button set. */ function theme_radios($element) { + $element['#children'] = '<div class="form-radios">'. $element['#children'] .'</div>'; if ($element['#title'] || $element['#description']) { unset($element['#id']); return theme('form_element', $element, $element['#children']); diff --git a/modules/system/system.css b/modules/system/system.css index 2632bcf04981a5210691662883234fdf0550c9ea..f1a18ac3fa96afd7bb46192f873bce0751deb6ee 100644 --- a/modules/system/system.css +++ b/modules/system/system.css @@ -103,6 +103,13 @@ tr.merge-up, tr.merge-up td, tr.merge-up th { display: inline; font-weight: normal; } +.form-checkboxes, .form-radios { + margin: 1em 0; +} +.form-checkboxes .form-item, .form-radios .form-item { + margin-top: 0.4em; + margin-bottom: 0.4em; +} .marker, .form-required { color: #f00; }