-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
91 lines (77 loc) · 1.46 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
}
/* Header Styling */
header {
background-color: #333;
color: #fff;
padding: 15px 20px;
}
header nav ul {
list-style: none;
display: flex;
flex-wrap: wrap; /* Allows wrapping on smaller screens */
justify-content: center; /* Centers navigation items */
margin: 0;
padding: 0;
}
header nav ul li {
margin: 5px 15px; /* Space between links */
}
header nav ul li a {
color: white;
text-decoration: none;
font-size: 16px;
}
header nav ul li a:hover {
text-decoration: underline;
}
/* Main Content Styling */
main {
padding: 20px;
text-align: center;
}
/* Footer Styling */
footer {
background-color: #6b8feb;
color: #fff;
text-align: center;
padding: 10px 20px;
position: relative; /* Remove fixed position for smaller screens */
bottom: 0;
width: 100%;
}
/* Responsive Design */
@media (max-width: 768px) {
header nav ul li {
margin: 10px 5px;
}
header nav ul li a {
font-size: 14px;
}
footer {
font-size: 14px;
padding: 15px;
}
}
@media (max-width: 480px) {
header nav ul {
flex-direction: column; /* Stack links vertically */
}
main {
padding: 15px;
}
footer {
font-size: 12px;
padding: 10px;
}
}