-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhead.php
87 lines (73 loc) · 1.92 KB
/
head.php
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
<html>
<head>
<style>
.header {
overflow:hidden;
background-color: #333;
top: 0;
width:100%;
padding: 10px 5px;
color:#FF0404 ;
}
/* Style the header links */
.header a {
float: left;
color: white;
text-align: center;
padding: 12px;
text-decoration: none;
font-size: 18px;
line-height: 25px;
border-radius: 4px;
font-weight:bold;
}
/* Style the logo link (notice that we set the same value of line-height and font-size to prevent the header to increase when the font gets bigger */
.header a.logo {
font-size: 25px;
font-weight: bold;
color:#FF0404 ;
}
/* Change the background color on mouse-over */
.header a:hover {
background-color: #ddd;
color: black;
}
/* Float the link section to the right */
.header-right {
float: right;
}
/* Add media queries for responsiveness - when the screen is 500px wide or less, stack the links on top of each other */
@media screen and (max-width: 500px) {
.header a {
float: none;
display: block;
text-align: left;
}
.header-right {
float: none;
}
}
/* Style the active/current link*/
a.act{
background: linear-gradient(to right, #fd746c 0%, #ff9068 100%);
color: white;
border-radius:30px;
}
a.logo2{
background-color: #333;
}
</style>
</head>
<body>
<div class="header">
<a href="home.php" class="logo"<?php if($active=='home') echo "class='logo2'"; ?>>Blood Connect </a>
<div class="header-right">
<a href="about_us.php" <?php if($active=='about') echo "class='act'"; ?> >About Us</a>
<a href="why_donate_blood.php" <?php if($active=='why') echo "class='act'"; ?>>Why Donate Blood</a>
<a href="donate_blood.php" <?php if($active=='donate') echo "class='act'"; ?>>Become A Donor</a>
<a href="need_blood.php" <?php if($active=='need') echo "class='act'"; ?>>Need Blood</a>
<a href="contact_us.php" <?php if($active=='contact') echo "class='act'"; ?>>Contact Us</a>
</div>
</div>
</body>
</html>