Fig dɛn
Dokumɛnt ɛn ɛgzampul dɛn fɔ sho rilayt pikchɔ ɛn tɛks wit di figa kɔmpɔnɛnt na Bootstrap.
Ɛnitɛm we yu nid fɔ sho sɔntin—lɛk pikchɔ we gɛt kɔpshɔn we yu want, tink bɔt fɔ yuz wan <figure>
.
Yuz di inklud .figure
, .figure-img
ɛn .figure-caption
klas dɛn fɔ gi sɔm beslayn stayl dɛn fɔ di HTML5 <figure>
ɛn <figcaption>
di ɛlimɛnt dɛn. Pikchɔ dɛn we de na figa dɛn nɔ gɛt sayz we klia, so mek shɔ se yu ad di .img-fluid
klas to yu <img>
fɔ mek i ansa.
<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>
Fɔ alaynɛt di figa in kapshɔn izi wit wi tɛks yutiliti dɛn .
<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>