Skip to content

Commit

Permalink
#24176 adds a note on the image docs about how to use picture
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgalante committed Oct 3, 2017
1 parent 742e3a7 commit 4030831
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/4.0/content/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,15 @@ Align images with the [helper float classes]({{ site.baseurl }}/docs/{{ site.doc
<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 %}

0 comments on commit 4030831

Please sign in to comment.