Creating a responsive website with a customized 960 grid system:
@media only screen and
(min-width: 720px) and (max-width: 959px){
.container_12{
margin-left: auto;
margin-right: auto;
width: 720px;
}
}
In addition, the site includes a navigation bar that utilizes position:fixed to stay at the top of the page.
.nav-band{
width: 100%;
font-weight: bold;
position: fixed;
z-index: 3;
overflow: hidden;
background-image:url('../img/trans_black.png');
padding: 2px;
}
However, an issue arises when viewing the site on my android tablet. Upon rotating the tablet, causing all .container_12 tags to shrink from 720px to 480px, the nav bar either vanishes or becomes misaligned halfway down the page. How do I go about solving this problem? The website also features an image that displays behind the nav bar in the .header-band section:
.header-band{
background-image:url('../img/header_band3.png');
background-repeat:repeat-x;
background-position:top;
height: 400px;
background-color: #050505;
position: fixed;
z-index: 1;
}
<div class='pageband nav-band'>
<ul class='horizontal-list'>
<li class='nav-item active'>
<a href="http://...">Home</a>
</li>
...
</ul>
</div>
<div class='pageband header-band'> </div>
<div class='pageband core-band'>
<div class='pageband logo-band '>
<div class='container_12'>
...