Hi Pixies,
You shuttle controls are set to a fixed width of 1170px (instead of a %), which is messing with the responsiveness of your site. In other words, it is making a scroll bar appear when the viewport size gets smaller than a full screen computer (or 1170px in this case).
You can replace your bootstrap.css
stylesheet in the media queries area, like below. Although not perfect, it will adjust your back and next buttons pretty close to what they need to be. Do a search for “@media” in the file and you will find this section. This also removes fixed-width containers. Replace all media queries with what’s below:
@media (min-width: 300px) {
.ctrls {
width: 85% !important;
}
}
@media (min-width: 600px) {
.ctrls {
width: 90% !important;
}
}
@media (min-width: 800px) {
.ctrls {
width: 93% !important;
}
}
@media (min-width: 992px) {
.ctrls {
width: 93% !important;
}
}
@media (min-width: 1200px) {
.ctrls {
width: 94% !important;
}
}
Also in your bootstrap.css
stylesheet, there is a section that styles the container
div (right above the media queries). Add this line:
width: 100%;
so that it looks like this:
.container {
width: 100%;
margin-right: auto;
margin-left: auto;
padding-left: 15px;
padding-right: 15px;
zoom: 1;
}
This next part needs to go into your style.css
stylesheet. It will make your shuttle controls respond to the width of the screen. It will also make sure that your images are centered on the screen and in between your shuttle controls when your screen size gets much bigger than the width of the images.
/* Modify the .ctrls class like this: */
.ctrls{
z-index:9999;
position:absolute;
/* change width from 1170px to 94% */
width:94%;
margin:auto;
top:50%;
/* comment out the left setting */
/* left:0px; */
}
/* ADD THIS ANYWHERE - make sure images are centered when needed */
img[data-imgno] {
margin-left: auto;
margin-right: auto;
}
Anyway, this should remove your horizontal scroll bar.