-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTask-1.css
More file actions
101 lines (85 loc) · 1.84 KB
/
Copy pathTask-1.css
File metadata and controls
101 lines (85 loc) · 1.84 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
92
93
94
95
96
97
98
99
100
101
* {
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
box-sizing: border-box;
}
body {
height: 100vh;
overflow: hidden; /* Prevents full page scrolling */
display: flex;
flex-direction: column;
}
header {
display: block;
padding: 10px 25px;
background-color: greenyellow;
color: ghostwhite;
}
header h1 {
text-align: center;
}
header ul {
display: flex;
flex-direction: row;
justify-content: space-between;
margin: 2px 35%;
}
header li {
list-style: none;
}
main {
display: grid;
grid-template-columns: repeat(2, 1fr); /* Two columns */
grid-template-rows: auto auto; /* Two rows */
gap: 20px;
padding: 10px 25px;
height: calc(100vh - 100px); /* Adjust based on header height */
overflow: hidden; /* Prevents scrolling */
}
/* Position the first two cards in the first column */
main .card:nth-child(1) {
grid-column: 1;
grid-row: 1;
}
main .card:nth-child(2) {
grid-column: 1;
grid-row: 2;
margin-bottom: 20px;
}
/* Position the third card at the top of the second column */
main .card:nth-child(3) {
grid-column: 2;
grid-row: 1;
}
main .card {
padding: 10px 20px;
margin: 20px;
color: black;
border: 2px solid transparent;
border-radius: 8px;
box-shadow: 0 4px 8px #ccc;
background-color: #ffffff;
width: 400px;
height: 200px;
}
main .card h2 {
padding: 12px;
color: green;
}
main .card h3 {
color: black;
}
footer {
background-color: #333;
color: white;
text-align: center;
padding: 1rem 0;
}
footer a {
color: white;
text-decoration: none;
margin: 0 0.5rem; /* Space between social links */
}
footer a:hover {
text-decoration: underline;
}