I'm developing a portal, with Bootstrap (3.1).
For this I put a carousel equal to the bootstrap on HEADER
of the page and the content just below that carousel. This is where the problem occurs, when loading the page, as the images have a certain weight - 200kb approx, the content that lies below the page "goes up" until the image is loaded.
My question is: how to make the bootstrap carousel have a load to wait for the image to load without the page getting "dancing"?
Note: The image varies in height so I can not put a height
or min-height
in the carousel div to delimit the initial size of it.
As for the code it's exactly like Bootstrap with an "h2" and a "p" below. As below:
<div class="carousel-inner">
<div class="item active">
<img src="..." alt="...">
<div class="carousel-caption">
...
</div>
</div>
...
</div>
<a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
<h2>Título da Página</h2>
<p>Texto texto texto</p>