I'm creating website and I have a small problem. At the end I set min-width: 1200px
. When I change my internet browser to smaller resolution and scrolling horizontally, it does not affect to my menu items! How can I fix it?
#page{
width: 1200px; height:1000px;
}
#page #primaryMenu {
min-width: 1200px;
background-color: #151414;
margin: 0 auto;
padding: 0;
list-style: none;
text-align: center;
font-size: 14px;
width: 100%;
position: fixed;
z-index: 10;
box-shadow: 0 0 5px black;
}
#page #primaryMenu li {
display: inline-block;
margin: 20px 10px;
cursor: pointer;
}
#page #primaryMenu li a {
text-decoration: none;
color: white;
transition: 0.65s;
}
#page #primaryMenu li a:hover {
transition: 0.5s;
color: #d10239;
}
<div id="page">
<ul id="primaryMenu">
<li><a href="index.html">STRONA GŁÓWNA</a></li>
<li><a href="fryzjerstwo.html">FRYZJERSTWO</a></li>
<li><a href="kosmetyka.html">KOSMETYKA</a></li>
<li><a href="solarium.html">SOLARIUM</a></li>
<li><a href="galeria.html">GALERIA</a></li>
<li><a href="kontakt.html">KONTAKT</a></li>
</ul>
</div>
EDIT
I don't want to do my website responsive, I want to set it with min-width 1200px;
to all devices. Its menu sticks to the top and I don't want to follow vertical scroll.Example: When i change web browser resolution to 200x200 and try to scroll to the right, my menu(list items) stays in the same position.