Source

Chif

Dokimantasyon ak egzanp pou montre imaj ki gen rapò ak tèks ak eleman nan figi nan Bootstrap.

Nenpòt lè ou bezwen montre yon moso nan kontni-tankou yon imaj ak yon tit si ou vle, konsidere itilize yon <figure>.

Sèvi ak .figure, .figure-imgak .figure-captionklas ki enkli yo pou bay kèk estil debaz pou HTML5 <figure>ak <figcaption>eleman yo. Imaj nan figi pa gen okenn gwosè klè, kidonk asire w ke ou ajoute .img-fluidklas la nan ou <img>a pou fè li reponn.

400x300
Yon tit pou imaj ki anwo a.
<figure class="figure">
  <img src="..." class="figure-img img-fluid rounded" alt="A generic square placeholder image with rounded corners in a figure.">
  <figcaption class="figure-caption">A caption for the above image.</figcaption>
</figure>

Aliman lejand figi a se fasil ak sèvis piblik tèks nou yo .

400x300
Yon tit pou imaj ki anwo a.
<figure class="figure">
  <img src="..." class="figure-img img-fluid rounded" alt="A generic square placeholder image with rounded corners in a figure.">
  <figcaption class="figure-caption text-right">A caption for the above image.</figcaption>
</figure>