-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask2.css
More file actions
76 lines (64 loc) · 1016 Bytes
/
task2.css
File metadata and controls
76 lines (64 loc) · 1016 Bytes
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
/* Reset */
body, h1, h2, p, ul {
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
background-color: #f2f2f2;
}
/* Header styling */
header {
background-color: #333;
color: white;
padding: 20px;
}
header h1 {
margin-bottom: 10px;
}
nav ul {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 15px;
}
nav ul li a {
color: white;
text-decoration: none;
}
nav ul li a:hover {
text-decoration: underline;
}
/* Main section */
main {
padding: 20px;
}
article {
background-color: white;
padding: 20px;
margin-top: 20px;
border-radius: 5px;
box-shadow: 0px 0px 5px rgba(0,0,0,0.1);
}
/* Footer styling */
footer {
background-color: #333;
color: white;
text-align: center;
padding: 15px;
margin-top: 40px;
}
/* Responsive nav layout for small screens */
@media (max-width: 600px) {
nav ul {
flex-direction: column;
gap: 10px;
}
header h1 {
font-size: 24px;
}
nav ul li a {
font-size: 16px;
}
}