Skip to content

Instantly share code, notes, and snippets.

@sanographix
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sanographix/8722829 to your computer and use it in GitHub Desktop.
Save sanographix/8722829 to your computer and use it in GitHub Desktop.
Illustfolio2でスライドショーの幅を変える
/* スライダー幅 (width を任意の値に変えてください) */
.flexslider {
width: 800px;
margin-left: auto;
margin-right: auto;
}
/* ブラウザ幅1220px以上のときのスライダー幅 */
@media (min-width: 1220px) {
.flexslider {
width: 800px;
}
}
/* ここから先は変更しないでください */
@media (min-width: 768px) and (max-width: 1040px) {
.flexslider {
width: 704px;
margin-right: 10px;
margin-left: 10px;
}
}
@media (max-width: 767px) {
.flexslider {
width: auto;
margin-right: -10px;
margin-left: -10px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment