On mobile screens, one of my divs is displaying below the navigation bar and I want to hide it using pure CSS. Can anyone suggest a solution?
I've attempted using "text-overflow: hidden;" and "overflow: hidden;" but they don't seem to be working as expected. Is there a correct way to implement these properties?
Below is the HTML code snippet:
<div class="credits">
<span class="nav">
<a class="credits" href="http://github.com/jvnknvlgl/website">Made by jvnknvlgl</a>
</span>
</div>
Accompanied by the relevant CSS:
div.credits {
float: right;
}
span.nav {
line-height: 56px;
display: inline-block;
vertical-align: middle;
}
a.credits {
font-family: 'Roboto', sans-serif;
font-size: large;
color: grey;
text-decoration: none;
}