I want to make a carrousel and over it, a div and the logo, to give that effect of being superimposed.
Try to do as in this EXAMPLE , but to no avail. When I add such properties ( absolute e relative
) to the carousel code it does not work.
ThebackgroundimagesslideintoCarouselshape.Thegreendivandthelogosuperimposedonthecarousel.
Itriedsomethinglike:
#myCarousel{
position: absolute;
}
#fixa{
position: absolute;
width: 20%;
height: 400px;
background: black;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div id="fixa">
DIV QUE SERÁ SOBREPOSTA
</div>
<div class="item active">
<img src="http://s3.amazonaws.savoir.com.br/cea.com.br/imagem/cadastrocqlv/imagem/cadastrocqlv-53440.jpg"></div><divclass="item">
<img src="http://www.asia-turismo.com/imagens/asia-imagem.jpg"></div></div></div><scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>