Created
April 12, 2012 17:00
-
-
Save marshall007/2369138 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <div id="main-description" class="row"> | |
| <div class="span5 columns"> | |
| <div id="main-slider" class="carousel slide"> | |
| <!-- Carousel items --> | |
| <div class="carousel-inner"> | |
| <div class="item active"> | |
| <img src="http://placehold.it/470x360"> | |
| </div> | |
| <div class="item"> | |
| <img src="http://placehold.it/470x360"> | |
| </div> | |
| <div class="item"> | |
| <img src="http://placehold.it/470x360"> | |
| </div> | |
| <div class="item"> | |
| <img src="http://placehold.it/470x360"> | |
| </div> | |
| <div class="item"> | |
| <img src="http://placehold.it/470x360"> | |
| </div> | |
| <div class="item"> | |
| <img src="http://placehold.it/470x360"> | |
| </div> | |
| <div class="item"> | |
| <img src="http://placehold.it/470x360"> | |
| </div> | |
| <div class="item"> | |
| <img src="http://placehold.it/470x360"> | |
| </div> | |
| </div> | |
| <!-- Carousel nav --> | |
| <a class="carousel-control left" href="#main-slider" data-slide="prev">‹</a> | |
| <a class="carousel-control right" href="#main-slider" data-slide="next">›</a> | |
| </div> | |
| </div> | |
| </div> |
This file contains hidden or 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
| $(document).ready(function () { | |
| $('#main-slider').carousel({ | |
| 'interval': 3000, | |
| }); | |
| }); |
This file contains hidden or 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
| // main.less | |
| @import "bootstrap"; | |
| #main-slider { | |
| .carousel-control { | |
| top: 70%; | |
| left: 5%; | |
| right: auto; | |
| } | |
| .carousel-control.right { | |
| left: auto; | |
| right: 5%; | |
| } | |
| .btn-group { | |
| padding: 10px 5px; | |
| } | |
| .item img { | |
| width: 100%; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment