You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
361
-
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
362
-
</div>
363
-
</div>
364
-
<divclass="card">
365
-
<div class="card-body">
366
-
<h5 class="card-title">Card title</h5>
367
-
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
368
-
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
@@ -386,9 +367,9 @@ Similar to headers and footers, cards can include top and bottom "image caps"—
386
367
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
387
368
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
Copy file name to clipboardExpand all lines: site/content/docs/4.5/content/images.md
+16-39Lines changed: 16 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,9 @@ toc: true
10
10
11
11
Images in Bootstrap are made responsive with `.img-fluid`. `max-width: 100%;` and `height: auto;` are applied to the image so that it scales with the parent element.
@@ -28,47 +24,28 @@ In Internet Explorer 10 and 11, SVG images with `.img-fluid` are disproportionat
28
24
29
25
In addition to our [border-radius utilities]({{< docsref "/utilities/borders" >}}), you can use `.img-thumbnail` to give an image a rounded 1px border appearance.
30
26
31
-
<divclass="bd-example bd-example-images">
32
-
{{< placeholder width="200" height="200" class="img-thumbnail" title="A generic square placeholder image with a white border around it, making it resemble a photograph taken with an old instant camera" >}}
33
-
</div>
34
-
35
-
```html
36
-
<imgsrc="..."alt="..."class="img-thumbnail">
37
-
```
27
+
{{< example >}}
28
+
{{< placeholder width="200" height="200" class="img-thumbnail" title="A generic square placeholder image with a white border around it, making it resemble a photograph taken with an old instant camera" >}}
29
+
{{< /example >}}
38
30
39
31
## Aligning images
40
32
41
33
Align images with the [helper float classes]({{< docsref "/utilities/float" >}}) or [text alignment classes]({{< docsref "/utilities/text#text-alignment" >}}). `block`-level images can be centered using [the `.mx-auto` margin utility class]({{< docsref "/utilities/spacing#horizontal-centering" >}}).
0 commit comments