Is there anyway to align the checkboxes in the divi contact form to be in three columns? I messaged elegant themes, and they don’t have an option for this in their page builder settings. Would anyone be able to suggest some custom css suggestions?
Here is what I have:
https://mastermclaren.com/checkboxes/
Here is what I want: (see image)
Any suggestions are much appreciated! Thank you for your time and advice! 🙂
2
Answers
A simple CSS approach would be to add the following to the parent element containing the checkboxes. From looking at your link, it looks like you would want to apply the following styles to the
.et_pb_contact_field_options_list
–Alternatively you could also try CSS grid –
I would recommend you to have a look on css property flex, your life will be much easier once you master it! (For example here: https://css-tricks.com/snippets/css/a-guide-to-flexbox/).
Main reason to choose flex for this is that you can use min-width for list items (et_pb_contact_field_checkbox) and the items will automatically shrink to 2 or 1 item per row – depending on the width (good for mobile design).
To your solution