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
Caption photos easily. On the left, a road goes through a tunnel. Middle, leaves artistically fall in a hipster photoshoot. Right, in another hipster photoshoot, a lumberjack grasps a handful of pine needles.
This image can also have a caption. It's like magic.
82
-
</div>
83
-
84
-
You can also put regular text between your rows of images, even citations {% cite einstein1950meaning %}.
85
-
Say you wanted to write a bit about your project before you posted the rest of the images.
86
-
You describe how you toiled, sweated, _bled_ for your project, and then... you reveal its glory in the next row of images.
87
-
88
-
<div class="row justify-content-sm-center">
89
-
<div class="col-sm-8 mt-3 mt-md-0">
90
-
{% include figure.liquid path="assets/img/6.jpg" title="example image" class="img-fluid rounded z-depth-1" %}
91
-
</div>
92
-
<div class="col-sm-4 mt-3 mt-md-0">
93
-
{% include figure.liquid path="assets/img/11.jpg" title="example image" class="img-fluid rounded z-depth-1" %}
94
-
</div>
95
-
</div>
96
-
<div class="caption">
97
-
You can also have artistically styled 2/3 + 1/3 images, like these.
98
-
</div>
99
-
100
-
The code is simple.
101
-
Just wrap your images with `<div class="col-sm">` and place them inside `<div class="row">` (read more about the <a href="https://getbootstrap.com/docs/4.4/layout/grid/">Bootstrap Grid</a> system).
102
-
To make images responsive, add `img-fluid` class to each; for rounded corners and shadows use `rounded` and `z-depth-1` classes.
103
-
Here's the code for the last row of images above:
104
-
105
-
{% raw %}
106
-
107
-
```html
108
-
<div class="row justify-content-sm-center">
109
-
<div class="col-sm-8 mt-3 mt-md-0">
110
-
{% include figure.liquid path="assets/img/6.jpg" title="example image" class="img-fluid rounded z-depth-1" %}
111
-
</div>
112
-
<div class="col-sm-4 mt-3 mt-md-0">
113
-
{% include figure.liquid path="assets/img/11.jpg" title="example image" class="img-fluid rounded z-depth-1" %}
0 commit comments