-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
66 lines (63 loc) · 1.16 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
body {
display: flex;
flex-direction: column;
align-items: center; /* This ensures horizontal centering */
justify-content: flex-start; /* This changes to center vertically as well */
min-height: 100vh;
font-family: Arial, sans-serif;
color: #333;
background-color: #fff;
margin: 0;
padding: 0;
}
.container {
max-width: 800px;
width: 100%;
margin: 0 auto; /* Ensure it's centered horizontally */
padding: 20px;
box-sizing: border-box;
text-align: center; /* Center text within the container */
}
header {
text-align: center;
padding: 50px 0;
width: 100%; /* Ensure header takes full width */
}
.about,
.contact {
margin-top: 40px;
width: 100%; /* Ensure these sections take full width */
}
.contact a {
color: #333;
text-decoration: none;
}
/* Responsive styles */
@media (max-width: 768px) {
.container {
padding: 10px;
}
header {
padding: 20px 0;
}
header h1 {
font-size: 24px;
}
.about h2,
.contact h2 {
font-size: 20px;
}
}
@media (max-width: 480px) {
header h1 {
font-size: 20px;
}
.about h2,
.contact h2 {
font-size: 18px;
}
.about p,
.contact p {
font-size: 14px;
}
}