I've been working on a technical documentation page for Javascript as part of a project, but I've run into an issue with the footer not hiding on small screens like I want it to.
Here are some things I've tried:
- Changing position fixed caused the footer to vanish completely
- Using display: none;
- Setting height and width to 0px;
Below is my SASS code. It's properly linked to the HTML page and CSS files.
footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
text-align: center;
padding-top: 30px;
padding-bottom: 5px;
}
@media only screen and (max-width:400px) {
footer {
display:none;
}
}
<footer>
Designed and Coded by:
<a href="what i linked" target="_blank">my name</a>
</footer>
I'm sure it's something simple that I'm overlooking, but being a newbie, I thought I'd reach out for some help.
Thank you so much, I really appreciate your time.