I am having trouble with a multi-step form and have created a fiddle with the bare basics to replicate my problem. It appears that my absolute positioned fieldsets do not allow for any following content to be pushed below them - therefore causing it to sit upon eachother. The fieldsets will be variable in height, otherwise I would just set a static height to each container.
<form id="msform">
<!-- progressbar -->
<ul id="progressbar">
<li class="active">Account Setup</li>
<li>Social Profiles</li>
<li>Personal Details</li>
<div class="clearfix"></div>
</ul>
<!-- Absolute Positioned Fieldsets -->
<fieldset>
<h2>Variable Height Fieldset (1/3)</h2>
<input type="button" name="next" class="next action-button" value="Next" />
</fieldset>
<fieldset>
<h2>Variable Height Fieldset (2/3)</h2>
<input type="button" name="previous" class="previous action-button" value="Previous" />
<input type="button" name="next" class="next action-button" value="Next" />
</fieldset>
<fieldset>
<h2>Variable Height Fieldset (3/3)</h2>
<input type="button" name="previous" class="previous action-button" value="Previous" />
<input type="submit" name="submit" class="submit action-button" value="Submit" />
</fieldset>
</form>
<!-- This needs to push below the fieldsets -->
<footer class="tm-footer">Footer Content Here (Needs to be under the fieldsets)</footer>
I feel as thought the solution may be to use javascript and make the container match the height it needs to be depending on it's content. Is there anyone that can lend some insight on how to keep the footer and any other content which might follow below the form without having to set a definitive height to an element? I feel like this should be easy, but I am stumped.
Thank you in advance. Below is a dumbed down fiddle to replicate the issue.
Example: JSFiddle Here