Skip to content

Commit 2c810ed

Browse files
committed
Adjusted media query values.
1 parent 2be09c1 commit 2c810ed

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

assets/css/style.css

+26-11
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,43 @@ button {
3939

4040
footer {
4141
position: fixed;
42-
/* Fixed position */
4342
left: 0;
44-
/* Align to the left edge */
4543
bottom: 0;
46-
/* Align to the bottom edge */
4744
width: 100%;
48-
/* Full width */
4945
text-align: center;
50-
/* Center text horizontally */
5146
display: flex;
52-
/* Use flexbox */
5347
justify-content: center;
54-
/* Center content horizontally */
5548
align-items: center;
56-
/* Center content vertically */
5749
height: 100px;
58-
/* Set a fixed height for the footer */
5950
color: black;
6051

6152
}
6253

6354
footer p {
6455
margin: 0;
65-
/* Remove default margin */
66-
}
56+
57+
}
58+
/* Media query for smaller screens */
59+
@media (max-height: 700px) {
60+
body {
61+
height: auto;
62+
}
63+
footer {
64+
position: static;
65+
height: auto;
66+
padding: 20px 0; /* Add padding to maintain vertical space */
67+
}
68+
footer p {
69+
text-align: left; /* Align text to the left */
70+
padding: 0 15px; /* Add padding to prevent text from touching the edges */
71+
}
72+
}
73+
74+
/* Media query for desktops, laptops, and tablets */
75+
@media (min-width: 768px) {
76+
footer p {
77+
margin: 0 auto; /* Center the paragraph within the footer */
78+
max-width: 80%; /* Limit the maximum width of the paragraph */
79+
padding: 10px; /* Add some padding for visual comfort */
80+
}
81+
}

0 commit comments

Comments
 (0)