Last active
August 29, 2015 13:55
-
-
Save sanographix/8722829 to your computer and use it in GitHub Desktop.
Illustfolio2でスライドショーの幅を変える
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* スライダー幅 (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