Skip to content

Commit

Permalink
Update styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbeve authored Oct 20, 2023
1 parent 316b9ea commit c40c96a
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,30 +59,3 @@ h2, h3 {
p {
margin-bottom: 20px;
}

.grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}

.grid-item {
display: flex;
flex-direction: column;
align-items: center; /* centers the content horizontally */
}

.grid-item img {
width: 200px;
height: 200px;
object-fit: cover;
border-radius: 5px;
}

.grid-item-content {
max-height: 250px; /* set to the height of the image */
max-width: 200px;
overflow: hidden; /* hides any content that exceeds the max-height */
text-align: center; /* centers the text */
padding: 10px 0; /* some vertical padding */
}

0 comments on commit c40c96a

Please sign in to comment.