This works fine on FF and IE9 but fails in IE7 and 8.
I have two hidden divs that contain a form inside. Once you click a button the correct div with the form will show below. All of this works fine but in IE7 and 8 the footer will overlap the form and won't be pushed down by the toggle event.
Here is my html (reduced):
<div class="row" id="contactesp">
<div class="twelve columns">
<!-- Contact Form 7 plugin shows the form here -->
</div>
</div>
<div class="row" id="contactmund">
<div class="twelve columns">
<!-- Contact Form 7 plugin shows the form here -->
</div>
</div>
<!-- Footer -->
<footer role="contentinfo" id="content-info">
<div class="row">Content here</div>
</footer>
My CSS (some of it):
#content-info {
background-color: #1C3F94;
clear: both;
color: #FFFFFF;
float: none;
margin: 20px -20px 0;
padding: 0 4%;
display:block;
}
#contactesp, #contactmund {
display: none;
height: auto;
overflow: hidden;
}
I also added overflow:hidden in the form but to no avail. Here is my JQuery:
jQuery(document).ready(function ($) {
$('.enesp').on('click',function(){
$('#contactmund').hide();
$('#contactesp').toggle();
});
$('.enmund').on('click',function(){
$('#contactesp').hide();
$('#contactmund').toggle();
});
});
The site is here for the complete code: http://www.institutoespanol.net/contacto/ and the problem shows up when you click on either of the buttons within the maps boxes.