Spaces:
Running
Running
Section 9: Images are cutting off to correct the full width
Browse files
style.css
CHANGED
|
@@ -12,14 +12,13 @@
|
|
| 12 |
transform: translateY(-8px);
|
| 13 |
box-shadow: 0 20px 40px -10px rgba(0, 32, 96, 0.2);
|
| 14 |
}
|
| 15 |
-
|
| 16 |
.resource-card img {
|
| 17 |
transition: transform 0.6s ease;
|
| 18 |
width: 100%;
|
| 19 |
height: 100%;
|
| 20 |
object-fit: cover;
|
|
|
|
| 21 |
}
|
| 22 |
-
|
| 23 |
.resource-card:hover img {
|
| 24 |
transform: scale(1.05);
|
| 25 |
}
|
|
@@ -57,6 +56,10 @@
|
|
| 57 |
flex-grow: 1;
|
| 58 |
}
|
| 59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
.resource-card h4 {
|
| 61 |
transition: color 0.3s ease;
|
| 62 |
}
|
|
@@ -70,6 +73,9 @@
|
|
| 70 |
.resource-card {
|
| 71 |
max-width: 100%;
|
| 72 |
}
|
|
|
|
|
|
|
|
|
|
| 73 |
}
|
| 74 |
body {
|
| 75 |
padding: 0;
|
|
|
|
| 12 |
transform: translateY(-8px);
|
| 13 |
box-shadow: 0 20px 40px -10px rgba(0, 32, 96, 0.2);
|
| 14 |
}
|
|
|
|
| 15 |
.resource-card img {
|
| 16 |
transition: transform 0.6s ease;
|
| 17 |
width: 100%;
|
| 18 |
height: 100%;
|
| 19 |
object-fit: cover;
|
| 20 |
+
object-position: center;
|
| 21 |
}
|
|
|
|
| 22 |
.resource-card:hover img {
|
| 23 |
transform: scale(1.05);
|
| 24 |
}
|
|
|
|
| 56 |
flex-grow: 1;
|
| 57 |
}
|
| 58 |
|
| 59 |
+
.resource-card .relative {
|
| 60 |
+
height: 100%;
|
| 61 |
+
width: 100%;
|
| 62 |
+
}
|
| 63 |
.resource-card h4 {
|
| 64 |
transition: color 0.3s ease;
|
| 65 |
}
|
|
|
|
| 73 |
.resource-card {
|
| 74 |
max-width: 100%;
|
| 75 |
}
|
| 76 |
+
.resource-card .relative {
|
| 77 |
+
height: 200px;
|
| 78 |
+
}
|
| 79 |
}
|
| 80 |
body {
|
| 81 |
padding: 0;
|