I'm trying to get my nav-bar to follow the top of the page when the user scrolls down, so I used fixed positioning which does do this for me, but the problem is that once the user decreases their page width to less than the min-width that has been set, the content of the page can be scrolled to view, but some items from the nav bar will get cut off and you can't scroll to view the rest of the items. When the nav-bar isn't set to fixed and the current page width < the min-width, you are able to still scroll to see the rest of the nav bar items, as well as the actual page content. I'd like to try to avoid using JavaScript for this project if I can.
Here's my CSS I'm using for the nav:
nav{
min-width: 900px;
position: fixed;
background-color:white;
width: 100%;
}
nav img{
display: block;
margin: 0 auto;
width: 25%;
padding-top:5px;
padding-bottom: 15px;
}
nav li{
font-size: 11px;
text-transform: uppercase;
letter-spacing: 2px;
display: inline-block;
padding: 10px 50px 0px 10px;
}
nav a{
color: white;
text-decoration: none;
}
nav ul{
margin: 0;
height: 30px;
background-color: black;
}
And here's the full website URL: http://cydronixweb.kkhorram.info/