mod/bootstrap/vendor/bootstrap/docs/4.0/content/images.md in card-1.93.2 vs mod/bootstrap/vendor/bootstrap/docs/4.0/content/images.md in card-1.93.3

- old
+ new

@@ -36,11 +36,11 @@ <img src="..." alt="..." class="img-thumbnail"> {% endhighlight %} ## Aligning images -Align images with the [helper float classes]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/utilities/float) or [text alignment classes]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/text/#text-alignment). `block`-level images can be centered using [the `.mx-auto` margin utility class]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/spacing/#horizontal-centering). +Align images with the [helper float classes]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/float) or [text alignment classes]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/text/#text-alignment). `block`-level images can be centered using [the `.mx-auto` margin utility class]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/spacing/#horizontal-centering). <div class="bd-example bd-example-images"> <img data-src="holder.js/200x200" class="rounded float-left" alt="A generic square placeholder image with rounded corners"> <img data-src="holder.js/200x200" class="rounded float-right" alt="A generic square placeholder image with rounded corners"> </div> @@ -66,6 +66,18 @@ {% highlight html %} <div class="text-center"> <img src="..." class="rounded" alt="..."> </div> +{% endhighlight %} + + +## Picture + +If you are using the `<picture>` element to specify multiple `<source>` elements for a specific `<img>`, make sure to add the `.img-*` classes to the `<img>` and not to the `<picture>` tag. + +{% highlight html %} +​<picture> + <source srcset="..." type="image/svg+xml"> + <img src="..." class="img-fluid img-thumbnail" alt="..."> +</picture> {% endhighlight %}