Okay, was looking at your form and it disappeared. Guess you're working on it. Yes, you're CSS is kinda whack.
From what I saw, disregarding what you're trying to do with the madlib format at the top, you were getting closer.
What I suggest is copying the entire contents of the forms.css file from the plugin folder to your themes style.css file or making a new local copy of the forms.css and linking it up. Then, go to the form settings page and set the "output css" option to no. That way you're using only your local copy and you can make all the modifications you like without having to overwrite the other styles or worry about your customizations being overwritten when the plugin updates.
So, he's the idea on the columns, you take the fields that you want to make columns.. in this 2 columns.. let say you have 5 fields.. so it would be something like this. You need to set the width, height, etc. on all of them the same so they float properly. Then, you only float every other one left so the second one will clear the float properly.
Sample CSS
/* apply widths and heights to all */
#gform_wrapper_1 #field_1_7,
#gform_wrapper_1 #field_1_8,
#gform_wrapper_1 #field_1_9,
#gform_wrapper_1 #field_1_10,
#gform_wrapper_1 #field_1_11,
#gform_wrapper_1 #field_1_12 {width:45%; height:200px;}
/* only float the first one in each row */
#gform_wrapper_1 #field_1_7,
#gform_wrapper_1 #field_1_9,
#gform_wrapper_1 #field_1_11 {float:left; margin-right:10px;}
That's really all there is to it other than just tweaking things to your preference.
Back to the madlib style format for the initial information, I would suggest using the inline HTML fields for the textual content before/between the inputs and just float all of the containing <li >'s so they're inline. You can use CSS to hide the actual field labels and won't have to do a lot of fancy stuff to override those label properties.
Hope that points you in the right direction.
Posted 14 years ago on Thursday October 14, 2010 |
Permalink