2
I want to run a paddle and over it, a div and the logo, to give that effect of being superimposed.
Try to do like this EXAMPLE, but without success. When I add such properties (absolute e relative
) the Carousel code does not work.
The Carousel-shaped slide background images. The green div and logo superimposed on the Carousel.
I tried something like:
#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>
<div class="item">
<img src="http://www.asia-turismo.com/imagens/asia-imagem.jpg">
</div>
</div>
</div>
<script src="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>
How can I do that?
Giving a research, I learned that put the
z-index:999
is a bad practice because this is not a conscious form of positioning.– Zkk
I was not aware of this, but cool ball show, the number 9999 was to have a base even not to use exactly this.
– Fbor