Skip to content

Commit 87d86d1

Browse files
committed
Fixing for mobile
1 parent f853b50 commit 87d86d1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

css/styles.css

+9-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,18 @@ body {
2121
}
2222

2323
.hero-logo {
24-
max-width: 400px;
25-
height: auto;
24+
max-width: 80%; /* Scales the logo to fit within 80% of the container */
25+
width: 100%; /* Ensures it doesn't exceed the container width */
26+
height: auto; /* Maintains aspect ratio */
2627
margin-bottom: 1rem;
2728
}
2829

30+
@media (max-width: 600px) {
31+
.hero-logo {
32+
max-width: 60%; /* Further reduce size for smaller screens */
33+
}
34+
}
35+
2936
.hero h1 {
3037
font-size: 2.5rem;
3138
margin-bottom: 1rem;

0 commit comments

Comments
 (0)