This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
center entire form
Started 14 years ago by texags2008 | 6 posts |
-
Trying to center ever element for one of my forms. I chanced the text-align:center; for the body and container but have an issue. My checkbox elements are not working correct. The title of the element is centered but the options under them are still positioned left.
What do I need to change to fix this? Thanks.
Posted 14 years ago # -
Here is a pic of the problem...
[img]http://shockerpot.com/wp-content/uploads/form.JPG[/img]
Posted 14 years ago # -
Hi,
For some field need to add some CSS code indeed, to centering check box try to add these code in your CSS form :
#li_15 span{ width:100%; } #li_15 input.checkbox{ width:60% !important; }
Make sure you change the ID's number with your check box ID's
MachForm Support
Posted 14 years ago # -
not playing so nice. they are no longer all on the same line. looks all jacked up.
Posted 14 years ago # -
when i take out the code to put all the checkboxes on the same line, your code above works like a champ. i'd like to keep them on the same line though.
thanks.
Posted 14 years ago # -
I see.. for one line check box you need to edit view-functions.php file and you can ignore my previous code. Go to line 585 and you'll see this code :
<span>
then replace with this
<span id="checkbox_span_{$element->id}">
after that you need to put these css code to your css form
#checkbox_span_2 { width:100%; }
don't forget to change the number with your check box element id
MachForm Support
Posted 14 years ago #
Reply
You must log in to post.