Yep, you'd basically remove the fieldset stuff from the previous example and use div elements like this..
First HTML block content
</li><!-- close the html field li -->
</ul><!-- close the list -->
<div id="field_column_1"><!-- open the first div -->
<ul class="gform_fields top_label description_above"><!-- reopen the list -->
---- Put form fields for the first column here...
Second HTML block content
</li><!-- close the html field li -->
</ul><!-- close the list -->
</div><!-- close the first div -->
<div id="field_column_2"><!-- open the second div -->
<ul class="gform_fields top_label description_above"><!-- reopen the list -->
---- Put form fields for the second column here...
Third HTML block content
</li><!-- close the html field li -->
</ul><!-- close the list -->
</div><!-- close the second div -->
<div id="field_column_3"><!-- open the third div -->
<ul class="gform_fields top_label description_above"><!-- reopen the list -->
---- Put form fields for the third column here...
Fourth HTML block content
</li><!-- close the html field li -->
</ul><!-- close the list -->
</div><!-- close the third div -->
<div id="field_column_4"><!-- open the fourth div -->
<ul class="gform_fields top_label description_above"><!-- reopen the list -->
---- Put form fields for the fourth column here...
Fifth HTML block content
</li><!-- close the html field li -->
</ul><!-- close the list -->
</div><!-- close the fourth div -->
<div id="field_column_5"><!-- open the fifth div -->
<ul class="gform_fields top_label description_above"><!-- reopen the list -->
---- Put form fields for the fifth column here...
Sixth (last) HTML block content
</li><!-- close the html field li -->
</ul><!-- close the list -->
</div><!-- close the fifth div -->
Once you've done that, you would want to target those div elements and float them so they all work in columns.. here's a quick CSS example that you can tweak to get started.. place it at the end of your theme stylesheet and style away.
[css]
body .gform_wrapper div#field_column_1,
body .gform_wrapper div#field_column_2,
body .gform_wrapper div#field_column_3,
body .gform_wrapper div#field_column_4,
body .gform_wrapper div#field_column_5 {
width:18%;
height:400px
}
body .gform_wrapper div#field_column_1,
body .gform_wrapper div#field_column_2,
body .gform_wrapper div#field_column_3,
body .gform_wrapper div#field_column_4 {
margin-right:1%;
float:left
}
Hope that points you in the right direction.
Posted 13 years ago on Thursday July 7, 2011 |
Permalink