melinda's blog

Bootstrap CSS for radio buttons on Drupal 7 registration page

For all who had issues getting the Drupal 7 Bootstrap theme radio buttons on the registration form to behave.

Code:
<div class="form-type-radio form-item-field-whatever">
<input type="radio" id="edit-field-whatever-field" name="field_whatever" value="no" class="form-radio" /> <label for="edit-field-whatever-field">No </label>
</div>

CSS:
#edit-field-whatever-field {
margin-left: 0;
}

CSS selector is the radio button's ID

Pages

Subscribe to RSS - melinda's blog