Skip to content

Commit 0ee8c44

Browse files
committed
Sorted picture sizing issue
1 parent 1a7773d commit 0ee8c44

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

Sprint-3/slideshow/style.css

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,14 @@ button {
2424
cursor: pointer;
2525
}
2626

27-
<!-- for smartphone access -- > #slide {
28-
width: 90vw; /* change from fixed 300px */
29-
height: 60vw;
30-
object-fit: cover;
31-
border-radius: 10px;
32-
}
27+
/* for smartphone access */
28+
@media (max-width: 600px) {
29+
#slide {
30+
width: 90vw;
31+
height: 60vw;
32+
}
3333

34-
button {
35-
padding: 12px 18px; /* slightly larger for touch targets */
36-
font-size: 1rem;
37-
cursor: pointer;
34+
button {
35+
padding: 12px 18px;
36+
}
3837
}

0 commit comments

Comments
 (0)