I'm running into an issue with the Google Maps API on my website. When I try to resize the window, the map ends up covering the footer. My goal is to create some space between the map and the footer.
Here's how it looks in a large window:
And here's how it appears in a smaller window:
Below is the HTML code for the page:
<section class="contact">
<article class="contact">
<h3>Lorem ipsum</h3>
<p>Lorem ipsum dolor sit amet</p>
<div class="carte">
<div id="map_canvas" style="width: 100%; height: 100%; position: relative; background-color: rgb(229, 227, 223); overflow: hidden;">
<div style="position: absolute; left: 0px; top: 0px; overflow: hidden; width: 100%; height: 100%; z-index: 0;">
</div>
</div>
<p></p>
</article>
</section>
<footer>
<p class="align-droite">
<span>Lorem ipsum</span>
Dolor sit amet
</p>
</footer>
</body>
</html>
And here is the CSS code used on the page:
footer{
width:100%;
font-family:'karla';
text-align:right;
margin-top:1%;
}
.carte{
height:95%;
margin-bottom:3%;
}
I've attempted adding margin properties without success. Is there a solution to this layout issue?