Skip to content

Commit 3f6a593

Browse files
committed
improve responsivenss of images
1 parent f6fc8b3 commit 3f6a593

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

layouts/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<div class="div-padding bg-color-black fg-color-white">
55
<section class="container clearfix">
66
<div class="row minisection">
7-
<div class="col-sm">
8-
<img src="images/pepper_side.jpg" class="float-right" alt="..." style="height:500px; width:auto;">
9-
</div>
107
<div class="col-sm">
118
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
129
{{ .Content }}
1310
</div>
11+
<div>
12+
<img src="images/pepper_side.jpg" class= "img-fluid" alt="..." style="max-height:500px; width:auto;">
13+
</div>
1414
</div>
1515
</section>
1616
</div>
@@ -23,7 +23,7 @@
2323
<h2>{{ .Title }}</h2>
2424
{{ .Content }}
2525
<div class="col-sm">
26-
<img src="images/robot-hand.jpg" class="float-right" alt="..." style="height:350px; width:auto;">
26+
<img src="images/robot-hand.jpg" class="img-fluid" alt="..." style="max-height:350px; width:auto;">
2727
</div>
2828
{{range .Pages.ByParam "order"}}
2929
<div class="col-sm">
@@ -50,7 +50,7 @@ <h3 class="text-center">{{ .Title }}</h3>
5050
</div>
5151
{{ end }}
5252
<div class="col-sm">
53-
<img src="images/asmo.jpg" class="float-right" alt="..." style="height:400px; width:auto;">
53+
<img src="images/asmo.jpg" class="img-fluid" alt="..." style="max-height:400px; width:auto;">
5454
</div>
5555
</div>
5656
{{ end }}

static/css/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ body {
1717
}
1818

1919
.div-padding {
20-
padding-top: 20px;
21-
padding-bottom: 20px;
20+
padding-top: 50px;
21+
padding-bottom: 100px;
2222
}
2323

2424
.minisection {

0 commit comments

Comments
 (0)