I'm working on a technical documentation page for Javascript for a project and my footer using media queries doesn't hide on small screens like I'd want it to.
Things tried:
- changing position fixed, this resulted in the footer vanishing completely
- display: none;
- height and width set to 0px;
Here's my SASS code, it's linked correctly to the html page and CSS.
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 assume it's something quite simple I'm missing but I'm a newbie so thought I'd ask for a hand.
Thank you very much, appreciate your time.
