Skip to content

Instantly share code, notes, and snippets.

@tcarlsen
Created April 9, 2014 08:26
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 tcarlsen/10241266 to your computer and use it in GitHub Desktop.
Save tcarlsen/10241266 to your computer and use it in GitHub Desktop.
Sådan benytter du dig af bootstarp karusel
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Demo</title>
<!-- embed bootstrap css -->
<link rel="stylesheet" href="path/to/bootstarp.min.css">
<!-- embed din css -->
<link rel="stylesheet" href="path/to/din.css">
</head>
<body>
<!-- billedkarusel -->
<div id="carousel-example" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example" data-slide-to="1"></li>
<li data-target="#carousel-example" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="http://placehold.it/700x400" alt="...">
<div class="carousel-caption">
...
</div>
</div>
<div class="item">
<img src="http://placehold.it/700x400" alt="...">
<div class="carousel-caption">
...
</div>
</div>
<div class="item">
<img src="http://placehold.it/700x400" alt="...">
<div class="carousel-caption">
...
</div>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#carousel-example" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
<!-- embed jquery (skal være der for at bootstrap javascript virker) -->
<script src="path/to/jquery.min.js"></script>
<!-- embed bootstarp javascript -->
<script src="path/to/bootstarp.min.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment