1
I am trying to make a Carousel that when clicking on the items is displayed the image and next to the content I would like to insert a line like the image below and center the items with the title next to how I do it?
<div class="home-destaque">
<div class="container">
<div class="row">
<center><h2>Destaques</h2></center>
</div>
<div class="outline-destaque">
<div class="row">
<div class="col-xs-12" id="slider">
<!-- Top part of the slider -->
<div class="row">
<div class="col-sm-8" id="carousel-bounding-box">
<div class="carousel slide" id="destaqueCarousel">
<!-- Carousel items -->
<div class="carousel-inner">
<div class="active item" data-slide-number="0">
<img src="http://placehold.it/770x300&text=Brigadeiro">
</div>
<div class="item" data-slide-number="1">
<img src="http://placehold.it/770x300&text=Petit gateau">
</div>
<div class="item" data-slide-number="2">
<img src="http://placehold.it/770x300&text=Boleria">
</div>
</div>
<!-- Carousel nav -->
<a class="left carousel-control" href="#destaqueCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#destaqueCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div> <!-- fim carousel -->
</div> <!-- fim carousel-bounding-box -->
<div class="col-sm-4" id="carousel-text"></div>
<div id="slide-content" style="display: none;">
<div id="slide-content-0">
<h2>Brigadeiro</h2>
<p>Lorem Ipsum Dolor</p>
<p class="sub-text">October 24 2014 - <a href="#">Leia Mais</a></p>
</div>
<div id="slide-content-1">
<h2>Petit gateau</h2>
<p>Lorem Ipsum Dolor</p>
<p class="sub-text">October 24 2014 - <a href="#">Leia Mais</a></p>
</div>
<div id="slide-content-2">
<h2>Boleria</h2>
<p>Lorem Ipsum Dolor</p>
<p class="sub-text">October 24 2014 - <a href="#">Leia Mais</a></p>
</div>
</div>
</div> <!-- fim row -->
</div> <!-- fim col-xs-12 -->
</div><!-- fim row-->
<div class="row hidden-xs" id="slider-thumbs">
<!-- Bottom switcher of slider -->
<ul class="hide-bullets">
<li class="col-sm-2">
<a class="thumbnail" id="carousel-selector-0"><img src="http://placehold.it/170x100&text=Brigadeiro"></a>
</li>
<li class="col-sm-2">
<a class="thumbnail" id="carousel-selector-1"><img src="http://placehold.it/170x100&text=Petit gateau"></a>
</li>
<li class="col-sm-2">
<a class="thumbnail" id="carousel-selector-2"><img src="http://placehold.it/170x100&text=Boleria"></a>
</li>
</ul>
</div>
</div><!-- linha destaque -->
</div><!-- fim container -->
</div> <!-- fim home-destaque -->
.home-destaque .hide-bullets {
list-style:none;
margin-left: 0px;/*margin-left: -40px;*/
margin-top:20px;
}
.outline-destaque {
padding: 70px 30px;
outline: #e8e8e8 1px solid;
outline-offset: -50px;
z-index: 999;
}
<script type="text/javascript">
/* Inicio carousel Suites */
jQuery(document).ready(function($) {
$('#destaqueCarousel').carousel({
interval: 5000
});
$('#carousel-text').html($('#slide-content-0').html());
//Handles the carousel thumbnails
$('[id^=carousel-selector-]').click( function(){
var id = this.id.substr(this.id.lastIndexOf("-") + 1);
var id = parseInt(id);
$('#destaqueCarousel').carousel(id);
});
// When the carousel slides, auto update the text
$('#destaqueCarousel').on('slid.bs.carousel', function (e) {
var id = $('.item.active').data('slide-number');
$('#carousel-text').html($('#slide-content-'+id).html());
});
});
/* Fim carousel Suites */
</script>
No CSS, just Bootstrap?
– hugocsl
@hugocsl sorry aabei forgetting, obrogado por lembrar está junto ao código.
– Bruno Richart