Skip to content

Commit 6dfe92c

Browse files
committed
Add figure with caption
1 parent e9680f8 commit 6dfe92c

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

css/main.css

+12
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,15 @@ button:hover {
4242
background-color: rgb(179, 2, 2);
4343
}
4444

45+
figure {
46+
width: 40%;
47+
margin: 0 auto 0 auto;
48+
}
49+
50+
figure > img {
51+
width: 100%;
52+
}
53+
54+
figcaption {
55+
color: rgb(179, 2, 2);
56+
}

img/blog-1-1.jpg

553 KB
Loading

posts/blog-post-1.html

+4-7
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,10 @@ <h1>Best Breakfast Ever!</h1>
4545
vegetarian broil.
4646
</p>
4747

48-
<p>
49-
Biological grape blender deep frying indie foods cream olive oil
50-
organic flavor lovely. Sushi sous-chef funghi vegan farm custard. Oven
51-
carrots blend conserve restaurants beets cook romantic. Steam
52-
sustainable sausage sauce meat. Main course eat better grape. A la
53-
carte meat herbes cream fork cookie bartender eat better cook.
54-
</p>
48+
<figure>
49+
<img src="../img/blog-1-1.jpg" alt="ingredients" />
50+
<figcaption>Figure 1 - Ingredients</figcaption>
51+
</figure>
5552

5653
<p>
5754
Sous-chef grocery shopping tasty bartender ingredients. Chocolate food

0 commit comments

Comments
 (0)