Skip to content

Commit b2bee55

Browse files
authored
Merge pull request #407 from Remy349/fix/campground-card-style
Fix/campground card style
2 parents f4fc079 + 232bf74 commit b2bee55

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

public/stylesheets/app.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ h1 {
3434

3535
#indeximg {
3636
max-width: 100%;
37-
width: 500px;
37+
width: 100%;
3838
height: 300px;
3939
border-radius: 5px;
4040
border: 1px solid black;
41+
object-fit: cover;
4142
}
4243

4344
#campinfo {
@@ -203,4 +204,4 @@ html {
203204
margin-bottom: 1rem;
204205
}
205206

206-
.
207+
.

views/campgrounds/index.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@
164164
const campgroundHtml = `
165165
<div class="card text-white bg-dark mb-3" id="campinfo">
166166
<div class="row">
167-
<div class="col-md-4" id="campgroundhomeimage">
167+
<div id="campgroundhomeimage">
168168
${imagesHtml}
169169
</div>
170-
<div class="col-md-8">
170+
<div>
171171
<div class="card-body">
172172
<h5 class="card-title">${item.title}</h5>
173173
<p class="card-text">${item.description}</p>

0 commit comments

Comments
 (0)