wrap a span around the checkbox label and remove bogus nbsp
This commit is contained in:
parent
ca8061a415
commit
67d97bb096
@ -158,6 +158,7 @@ label {
|
||||
|
||||
input[type="checkbox"] {
|
||||
border: 1px solid #ccc;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
input[type="email"],
|
||||
|
@ -245,7 +245,7 @@ function form_radio($name, $label, $value, $checked = false, $class = '')
|
||||
|
||||
function form_checkbox($name, $label, $value, $checked = false, $class = '')
|
||||
{
|
||||
return '<label><input type="checkbox" name="'.$name.'" class="'.$class.'" value="'.escape($value).'" '.($checked ? 'checked="checked"' : '').'> '.escape($label).'</label>';
|
||||
return '<label><input type="checkbox" name="'.$name.'" class="'.$class.'" value="'.escape($value).'" '.($checked ? 'checked="checked"' : '').'><span>'.escape($label).'</span></label>';
|
||||
}
|
||||
|
||||
function form_label($label, $name, $class = '')
|
||||
|
Loading…
Reference in New Issue
Block a user