Mobile site variations for nav bar
-
Hi,
SO my site is http://www.chesapeaketees.com and I am trying to get it to display the nav bar correctly at different resolutions.Firstly , I found a tutorial for creating grid images and it uses this code to change the width of tiles at different resolutions.
@media only screen and (max-width : 480px) {
/* Smartphone view: 1 tile */
.box {
width: 100%;
padding-bottom: 100%;
}
}
@media only screen and (max-width : 650px) and (min-width : 481px) {
/* Tablet view: 2 tiles */
.box {
width: 50%;
padding-bottom: 50%;
}
}
@media only screen and (max-width : 1050px) and (min-width : 651px) {
/* Small desktop / ipad view: 3 tiles */
.box {
width: 33.3%;
padding-bottom: 33.3%;
}
}
@media only screen and (max-width : 1290px) and (min-width : 1051px) {
/* Medium desktop: 4 tiles */
.box {
width: 25%;
padding-bottom: 25%;
}
}So basically I wanted to use this concept for my site such that the lower resolutions display the nav menu to the left and at the higher resolutions center it. Currently I am using this to center it :
.navbar-nav {
text-align:center;}
.nav > li, .navbar-nav {
float: none;
}
.nav > li {
display: inline-block;
left: 75px;
}
.navsearch {
color: #fff;
float: right !important;
border: 0 !important;
padding: .2%;
left: -2% !important;}
I tried to change this to left and place inside the lower resolution brackets above but it does not work. What am I missing? PS my theme is arcade basic.
Thanks
The topic ‘Mobile site variations for nav bar’ is closed to new replies.