I'm currently trying to keep the contents of my footer element inside and centered. However, they're not staying inside. I also want this to be mobile-responsive so they stay inside the footer regardless of the footer size.
Also, is there a better way I can implement a mobile-responsive footer that will always be under the content in the middle?
Here is my current code:
/* Footer Styling */
footer{
width:100vw;
height: 5%;
background-color:#FFF6E3;
position:absolute;
bottom:0;
text-align:center;
}
footer h3 {
margin-top: 2%;
font-family: Helvetica;
font-style: normal;
font-weight: bold;
font-size: 31px;
line-height: 36px;
color: #BB7720;
}
footer p, a {
font-family: Baskerville;
font-style: italic;
font-weight: normal;
font-size: 31px;
text-align: right;
letter-spacing: 0.07em;
text-align:center;
color: #946E29;
}
<footer>
<h3>CONNECT WITH BUN BUN</h3>
<p>Contact us at <a href="#">bunbun@gmail.com</a></p>
</footer>