Skip to content

Commit 229fd0c

Browse files
committed
swap image and text on alternating rows
1 parent 51f1297 commit 229fd0c

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h3>Facts About Glasgow</h3>
2828
</div>
2929
<img src="https://c.files.bbci.co.uk/16F94/production/_130100149_pa-20938626-1.jpg" alt="The Duke of Wellington Statue in Glasgow">
3030
</section>
31-
<section class="content">
31+
<section class="content inverted">
3232
<div>
3333
<h3>Facts About Manchester</h3>
3434
<ul>
@@ -54,7 +54,7 @@ <h3>Facts About Birmingham</h3>
5454
</div>
5555
<img src="https://cdn.pixabay.com/photo/2017/08/24/07/36/birmingham-2675655_1280.jpg">
5656
</section>
57-
<section class="content">
57+
<section class="content inverted">
5858
<div>
5959
<h3>Facts About London</h3>
6060
<ul>

styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ img {
1717
display: flex;
1818
justify-content: space-around;
1919
}
20+
21+
.inverted{
22+
flex-direction: row-reverse;
23+
}

0 commit comments

Comments
 (0)