"Carousel Static Headline Caption"
Bootstrap 3.1.0 Snippet by BhaumikPatel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="col-md-12">
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="item active">
<img src="http://placehold.it/1200x500/3498db/2980b9" alt="First slide">
<div class="carousel-caption">
<h3>
First slide</h3>
<p>
Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
</div>
</div>
<div class="item">
<img src="http://placehold.it/1200x500/9b59b6/8e44ad" alt="Second slide">
<div class="carousel-caption">
<h3>
Second slide</h3>
<p>
Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
</div>
</div>
<div class="item">
<img src="http://placehold.it/1200x500/34495e/2c3e50" alt="Third slide">
<div class="carousel-caption">
<h3>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.main-text
{
position: absolute;
top: 50px;
width: 96.66666666666666%;
color: #FFF;
}
.btn-min-block
{
min-width: 170px;
line-height: 26px;
}
.btn-clear
{
color: #FFF;
background-color: transparent;
border-color: #FFF;
margin-right: 15px;
}
.btn-clear:hover
{
color: #000;
background-color: #FFF;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Can i have same slider for dynamic image values.

saran () - 10 years ago - Reply 0


Thanks for this! It solved several problems. In addition to the static headline, I was also able to implement a second instance and replace the indicators with a static thumbnail bar at the bottom inside the carousel. Good job.

maestrodks () - 10 years ago - Reply 0


Nice snippet.. thanks for sharing with us!!

Miguel Machado () - 10 years ago - Reply 0


I want to stop the autoslide how can we stop? please suggest

jagjit () - 10 years ago - Reply 0


Great one!

chasefoto () - 10 years ago - Reply 0


How can i make this slider full width?

EJ () - 10 years ago - Reply 0


You would have to take it out of the .container class because anything in .container is within the Bootstrap grid.

maxsurguy () - 10 years ago - Reply 0


Usefull but it's not working with the Lumen theme, the buttons are wrong displayed

Charlie Brandon Camus () - 10 years ago - Reply 0


What is the problem may be i can help

abuasmaa () - 10 years ago - Reply 0


Needsomejavascriptplease!!!

drquochoai () - 10 years ago - Reply 0


Missing some javascript?

Lewis () - 11 years ago - Reply 0


It is a bootstrap slider. Just use the jquery.min.js, bootstrap.min.js and bootstrap.min.css

Joel Muriuki () - 8 years ago - Reply 0