Format Comma-Seperated Checkboxes

Format Comma-Seperated Checkboxes

A couple of tricks to format and position the labels of the checkboxes
divider

A couple of tricks to format and position the labels of the checkboxes

  • Put the input field in a <div> and apply a class to them.
#checkboxesDIV label {
color: #000000;
padding-right: 10px;
font-weight: bold;
}
  • You can increase the space between the checkbox and the label by modifying your mysql query.
    Use CONCAT to force a space before the actual label
SELECT tr_id, CONCAT('add_your_spaces_here', train_desc) AS train_lables
FROM fly_specialised_training
ORDER BY tr_id ASC
Written by:  - 5 Sep, 2010