-
Notifications
You must be signed in to change notification settings - Fork 0
/
no.css
67 lines (57 loc) · 1.15 KB
/
no.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
body, h1, ul, li, p {
margin: 0;
padding: 0;
}
/* Style the header */
header {
background-color: #333;
color: #fff;
text-align: center;
padding: 20px 0;
}
/* Style the navigation bar */
nav {
background-color: #444;
color: #fff;
}
nav ul {
list-style: none;
display: flex;
justify-content: center;
padding: 10px 0;
}
nav li {
margin: 0 15px;
}
nav a {
text-decoration: none;
color: #fff;
}
/* Style the grid */
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr); /* Three columns */
grid-gap: 20px; /* Gap between grid items */
padding: 20px;
}
.item {
background-color: #f4f4f4;
padding: 20px;
text-align: center;
border: 1px solid #ccc;
border-radius: 5px;
}
/* Style the footer */
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 10px 0;
}
/* Example media query for screens narrower than 768px */
@media (max-width: 768px) {
.grid {
grid-template-columns: repeat(3, 1fr); /* Two columns */
grid-gap: 10px; /* Reduced gap */
}
}