Commit 2c810ed 1 parent 2be09c1 commit 2c810ed Copy full SHA for 2c810ed
File tree 1 file changed +26
-11
lines changed
1 file changed +26
-11
lines changed Original file line number Diff line number Diff line change @@ -39,28 +39,43 @@ button {
39
39
40
40
footer {
41
41
position : fixed;
42
- /* Fixed position */
43
42
left : 0 ;
44
- /* Align to the left edge */
45
43
bottom : 0 ;
46
- /* Align to the bottom edge */
47
44
width : 100% ;
48
- /* Full width */
49
45
text-align : center;
50
- /* Center text horizontally */
51
46
display : flex;
52
- /* Use flexbox */
53
47
justify-content : center;
54
- /* Center content horizontally */
55
48
align-items : center;
56
- /* Center content vertically */
57
49
height : 100px ;
58
- /* Set a fixed height for the footer */
59
50
color : black;
60
51
61
52
}
62
53
63
54
footer p {
64
55
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
+ }
You can’t perform that action at this time.
0 commit comments