Rate this article

Format Comma-Seperated Checkboxes

Rating: 4.7/5 (3 votes cast)

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

  1. Put the input field in a <div> and apply a class to them.

    #checkboxesDIV label {
    color: #000000;
    padding-right: 10px;
    font-weight: bold;
    }
  2. You can increase the space between the checkbox and the label by modifying your mysql query.
    Use CONCAT to forse a space before the actual label

    SELECT tr_id, CONCAT('   ', train_desc) AS train_lables
    FROM fly_specialised_training
    ORDER BY tr_id ASC

Adobe

XMS Systems
ionCube Online PHP Encoder
Free PositiveSSL and WhoisGuard with Every Domain Purchase

Although we try to ensure all the articles submitted are valid it is your responsibility to make sure you have backups before you use these suggestions on your pc or websites.
We do not take any responsibility for any data-loss, loss in functionality or any problem that might arise in what-ever way or form by making use of the information on this site.

"Friends of Interakt" has no connection to the Adobe Interakt Company