-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
91 lines (85 loc) · 1.49 KB
/
style.css
File metadata and controls
91 lines (85 loc) · 1.49 KB
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 Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
background-color: #f4f4f4;
color: #333;
}
/* Header */
.header {
background-color: #007BFF;
color: white;
padding: 20px;
text-align: center;
}
.header nav ul {
list-style: none;
display: flex;
justify-content: center;
gap: 20px;
padding: 0;
margin-top: 10px;
}
.header nav ul li a {
color: white;
text-decoration: none;
font-weight: bold;
}
/* Flexbox Section */
.flex-container {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
margin: 20px 0;
}
.flex-item {
background-color: #FFC107;
padding: 20px;
margin: 10px;
flex: 1 1 200px; /* Grow, shrink, basis */
text-align: center;
border-radius: 5px;
}
/* Grid Section */
.grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
margin: 20px 0;
}
.grid-item {
background-color: #28A745;
color: white;
padding: 20px;
text-align: center;
border-radius: 5px;
}
/* Responsive Section */
.responsive-section {
background-color: #17A2B8;
color: white;
padding: 20px;
margin: 20px 0;
border-radius: 5px;
text-align: center;
}
/* Footer */
.footer {
background-color: #333;
color: white;
text-align: center;
padding: 10px;
border-radius: 5px;
}
/* Media Queries */
@media (max-width: 768px) {
.header nav ul {
flex-direction: column;
gap: 10px;
}
.flex-container {
flex-direction: column;
}
}