Repository navigation
Expand file tree
/
Copy pathfaculty.css
More file actions
109 lines (94 loc) · 2.22 KB
/
Copy pathfaculty.css
File metadata and controls
109 lines (94 loc) · 2.22 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
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
header {
text-align: center;
padding: 20px;
}
.navigation {
display: flex;
justify-content: center;
margin-bottom: 10px;
}
.nav-button {
border: none;
background-color: #f0f0f0;
padding: 10px 20px;
margin: 0 5px;
font-size: 14px;
cursor: pointer;
}
.nav-button.active {
background-color: #d1ff00;
}
body {
margin: 0;
padding: 0;
font-family: 'Calibri' ;
background: url('images/nmamit.png') no-repeat center center fixed;
background-size: cover;
color: black;
}
.faculty-container {
display: flex;
justify-content: center;
gap: 30px; /* Space between boxes */
flex-wrap: wrap; /* Allow wrapping to new rows */
padding: 20px;
}
.faculty-card {
background-color: #fff;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
border-radius: 10px;
padding: 20px;
text-align: center;
width: 250px; /* Adjust as needed */
height: 350px; /* Increased to fit larger photo */
transition: background-color 0.3s ease, box-shadow 0.4s ease;
}
.faculty-card:hover{
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
background-color: rgb(233, 230, 230);
}
.faculty-photo {
width: 200px; /* Adjust this size for a larger photo */
height: 200px; /* Match the width to maintain the circle */
border-radius: 50%; /* Ensures the photo stays circular */
object-fit: cover; /* Keeps the image proportionate inside the circle */
margin-bottom: 10px; /* Space between photo and text */
}
h3 {
font-size: 16px;
margin: 10px 0 5px;
}
p {
font-size: 14px;
color: #666;
margin: 0 0 15px;
}
.read-more {
margin-top: 10px;
padding: 10px 15px;
background-color: #d1ff00;
border: none;
font-size: 14px;
cursor: pointer;
}
.content{
text-align: center;
height: auto;
}
body {
background-color: #f9f9f9;
}
@media (max-width: 768px) {
.team-row {
flex-direction: column;
align-items: center;
}
}