diff --git a/css/styles.css b/css/styles.css index b09f92f3b..37eda3ec6 100644 --- a/css/styles.css +++ b/css/styles.css @@ -427,7 +427,7 @@ input.submit_button:focus { cursor: pointer; padding-left: 22px; position: relative; - display: block; + display: inline-block; height: 26px; } .formcreator_radios input[type = radio] + label:before, diff --git a/inc/fields/radiosfield.class.php b/inc/fields/radiosfield.class.php index b43def849..279878180 100644 --- a/inc/fields/radiosfield.class.php +++ b/inc/fields/radiosfield.class.php @@ -104,6 +104,7 @@ public function getRenderedHtml($canEdit = true) { if ((trim($value) != '')) { $i++; $checked = ($this->value == $value) ? ['checked' => ''] : []; + $html .= '
'; $html .= Html::input($fieldName, [ 'type' => 'radio', 'class' => 'form-control', @@ -113,6 +114,7 @@ public function getRenderedHtml($canEdit = true) { $html .= ''; + $html .= '
'; } } $html .= '';