I am working on a form that has 52 yes/no checkboxes for disease and medical conditions. On the PDF they are in 4 columns with 13 checkboxes. If I do it in a table, it doesn't look good. Using checkboxes looks better but it is very long and it doesn't seem to respond to CSS like a single field does when putting them side by side. What would be the best way to format this? Thanks!
Question
Question
Replies
Is there an issue with spacing and formatting that causes it not to look neat?
If I use checkboxes, it looks nice but a lot of white space on the right and it is very long list. I was hoping to make two columns but I not sure if I can format the checkbox field to have two columns. When I try CSS like I would for a single field, my yes no overlaps on disease name, instead of moving side by side. This is the HTML/CSS I'm using for single fields.
#Field36 {width: 550px}
#q36 .label-left {width: 20px;}
#q36 .cf-field {width: 25px;}
#q36 .cf-medium {width: 30px;}
#Field37 {width: 550px}
#q37 .label-left {width: 20px;}
#q37 .cf-field {width: 25px;}
#q37 .cf-medium {width: 30px;}
#q36, #q37 {display: inline-block;}
You can refer to this post, use similar logic for the checkbox field
https://answers.laserfiche.com/questions/51613/Trouble-with-Putting-Fields-SidebySide
Hi Abby,
I did try that with this
#q22, #q23 .inline {display:inline-block; vertical align:top; }
#q22 label {width: 100%;}
#q22 .cf-field {width: 25px;}
#q22 .cf-medium {width: 100%;}
#q23 label {width: 100%;}
#q23 .cf-field {width: 25px;}
#q23 .cf-medium {width: 100%;}
The checkboxes are smaller but they still do not line up side by side. You can see the difference in the top two that I applied the CSS to.
Is there a way to make these into two columns instead of one long list?