Skip to content

Commit 3ef6501

Browse files
authored
Fix messy image heights
1 parent 871417c commit 3ef6501

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

Project 1/templates/index.html

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ <h1 class="display-4">Всякие туры</h1>
4646
<div class="row mt-5">
4747
<div class="col-4">
4848
<div class="card mb-4">
49-
<img src="https://place-hold.it/300x200" class="card-img-top img-fluid" alt="">
49+
<div class="embed-responsive embed-responsive-16by9">
50+
<img class="card-img-top embed-responsive-item" src="https://place-hold.it/300x200" alt="" />
51+
</div>
5052
<div class="card-body">
5153
<h2 class="h5 card-title">Hotel title</h2>
5254
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
@@ -56,7 +58,9 @@ <h2 class="h5 card-title">Hotel title</h2>
5658
</div>
5759
<div class="col-4">
5860
<div class="card mb-4">
59-
<img src="https://place-hold.it/300x200" class="card-img-top img-fluid" alt="">
61+
<div class="embed-responsive embed-responsive-16by9">
62+
<img class="card-img-top embed-responsive-item" src="https://place-hold.it/300x200" alt="" />
63+
</div>
6064
<div class="card-body">
6165
<h2 class="h5 card-title">Hotel title</h2>
6266
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
@@ -66,7 +70,9 @@ <h2 class="h5 card-title">Hotel title</h2>
6670
</div>
6771
<div class="col-4">
6872
<div class="card mb-4">
69-
<img src="https://place-hold.it/300x200" class="card-img-top img-fluid" alt="">
73+
<div class="embed-responsive embed-responsive-16by9">
74+
<img class="card-img-top embed-responsive-item" src="https://place-hold.it/300x200" alt="" />
75+
</div>
7076
<div class="card-body">
7177
<h2 class="h5 card-title">Hotel title</h2>
7278
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
@@ -76,7 +82,9 @@ <h2 class="h5 card-title">Hotel title</h2>
7682
</div>
7783
<div class="col-4">
7884
<div class="card mb-4">
79-
<img src="https://place-hold.it/300x200" class="card-img-top img-fluid" alt="">
85+
<div class="embed-responsive embed-responsive-16by9">
86+
<img class="card-img-top embed-responsive-item" src="https://place-hold.it/300x200" alt="" />
87+
</div>
8088
<div class="card-body">
8189
<h2 class="h5 card-title">Hotel title</h2>
8290
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
@@ -86,7 +94,9 @@ <h2 class="h5 card-title">Hotel title</h2>
8694
</div>
8795
<div class="col-4">
8896
<div class="card mb-4">
89-
<img src="https://place-hold.it/300x200" class="card-img-top img-fluid" alt="">
97+
<div class="embed-responsive embed-responsive-16by9">
98+
<img class="card-img-top embed-responsive-item" src="https://place-hold.it/300x200" alt="" />
99+
</div>
90100
<div class="card-body">
91101
<h2 class="h5 card-title">Hotel title</h2>
92102
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
@@ -96,7 +106,9 @@ <h2 class="h5 card-title">Hotel title</h2>
96106
</div>
97107
<div class="col-4">
98108
<div class="card mb-4">
99-
<img src="https://place-hold.it/300x200" class="card-img-top img-fluid" alt="">
109+
<div class="embed-responsive embed-responsive-16by9">
110+
<img class="card-img-top embed-responsive-item" src="https://place-hold.it/300x200" alt="" />
111+
</div>
100112
<div class="card-body">
101113
<h2 class="h5 card-title">Hotel title</h2>
102114
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
@@ -110,4 +122,4 @@ <h2 class="h5 card-title">Hotel title</h2>
110122
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
111123
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
112124
</body>
113-
</html>
125+
</html>

0 commit comments

Comments
 (0)