-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
113 lines (98 loc) · 1.71 KB
/
style.css
File metadata and controls
113 lines (98 loc) · 1.71 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
102
103
104
105
106
107
108
109
110
111
112
113
h1 {
text-align: center; /* 🔧 CHANGED from right → center */
background-color: #FFD700;
font-family: 'Times New Roman', Times, serif;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover {
background-color: #111;
}
header {
background-color: black;
}
img {
background-color: rgb(0, 0, 0);
border-radius: 2px;
}
.dropdown {
position: relative;
display: inline-block;
width: 100%;
text-align: center; /* 🔧 NEW: center dropdown content */
}
.dropdown-content {
display: none;
position: absolute;
background-color: goldenrod;
min-width: 250px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
padding: 12px 16px;
z-index: 1;
left: 50%; /* 🔧 NEW: center horizontally */
transform: translateX(-50%);
}
.dropdown:hover .dropdown-content {
display: block;
}
/* 🔧 NEW: Style links like buttons */
.dept-btn {
display: block;
background: black;
color: white;
padding: 10px;
margin: 5px 0;
text-decoration: none;
border-radius: 5px;
}
.dept-btn:hover {
background: #222;
color: gold;
}
.aff {
color: gold;
float: right;
}
.foot {
padding: 15px 0;
width: 100%;
background-color: yellow;
text-align: center;
}
html, body {
height: 100%;
margin: 0;
display: flex;
flex-direction: column;
}
body {
background-color: #1E1E2F;
}
footer.foot {
margin-top: auto;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
}
p,h4
{
text-align: center;
color: white;
font-family: 'Times New Roman', Times, serif;
}