-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarksheet.css
108 lines (89 loc) · 1.56 KB
/
marksheet.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
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
102
103
104
105
106
107
108
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f2f2f2;
}
header {
background-color: #333;
color: #fff;
padding: 20px;
text-shadow: -2px -2px 0 #f2f55a;
}
h1 {
margin: 0;
}
main {
max-width: 800px;
margin: 20px auto;
background-color: #fff;
padding: 20px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
border-radius: 10px;
}
section {
margin-bottom: 40px;
}
h2 {
color: #333;
font-size: 24px;
margin-bottom: 10px;
text-transform: uppercase;
border-bottom: 2px solid #333;
padding-bottom: 5px;
}
.student-info {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.info-item {
flex-basis: 45%;
margin-bottom: 10px;
}
.info-item span {
display: block;
font-weight: bold;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
border: 1px solid #ccc;
padding: 10px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
tr:nth-child(even) {
background-color: #f9f9f9;
}
.total-marks {
display: flex;
justify-content: space-between;
}
.total-marks p {
font-weight: bold;
}
.total-marks p strong {
color: #333;
}
.student-info .info-item:nth-child(odd) {
background-color: #f9f9f9;
padding: 10px;
border-radius: 5px;
}
.student-info .info-item:nth-child(even) {
background-color: #e9e9e9;
padding: 10px;
border-radius: 5px;
}
.total-marks p:first-child {
font-size: 18px;
}
.total-marks p:last-child {
font-size: 24px;
color: #333;
}