diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-09-07 11:26:02 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-09-07 11:26:02 +0200 |
commit | 54fa28441c5f0bdcd9687615f4a6b7a0fab024a3 (patch) | |
tree | 33866b82c7ba3a6f6ecb9e6ca69233fc65379b43 /vendor/twbs/bootstrap/site/docs/4.1/content/figures.md | |
parent | bb42ec2bfc0826dde3e3915566c4689762b128d7 (diff) | |
download | volse-hubzilla-54fa28441c5f0bdcd9687615f4a6b7a0fab024a3.tar.gz volse-hubzilla-54fa28441c5f0bdcd9687615f4a6b7a0fab024a3.tar.bz2 volse-hubzilla-54fa28441c5f0bdcd9687615f4a6b7a0fab024a3.zip |
install bootstrap via composer
Diffstat (limited to 'vendor/twbs/bootstrap/site/docs/4.1/content/figures.md')
-rw-r--r-- | vendor/twbs/bootstrap/site/docs/4.1/content/figures.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/twbs/bootstrap/site/docs/4.1/content/figures.md b/vendor/twbs/bootstrap/site/docs/4.1/content/figures.md new file mode 100644 index 000000000..7041997ba --- /dev/null +++ b/vendor/twbs/bootstrap/site/docs/4.1/content/figures.md @@ -0,0 +1,28 @@ +--- +layout: docs +title: Figures +description: Documentation and examples for displaying related images and text with the figure component in Bootstrap. +group: content +--- + +Anytime you need to display a piece of content—like an image with an optional caption, consider using a `<figure>`. + +Use the included `.figure` , `.figure-img` and `.figure-caption` classes to provide some baseline styles for the HTML5 `<figure>` and `<figcaption>` elements. Images in figures have no explicit size, so be sure to add the `.img-fluid` class to your `<img>` to make it responsive. + +{% capture example %} +<figure class="figure"> + <img data-src="holder.js/400x300" 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> +{% endcapture %} +{% include example.html content=example %} + +Aligning the figure's caption is easy with our [text utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/text/#text-alignment). + +{% capture example %} +<figure class="figure"> + <img data-src="holder.js/400x300" 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> +{% endcapture %} +{% include example.html content=example %} |