-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.html
129 lines (111 loc) · 3.7 KB
/
blog.html
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<html>
<head>
<title>Blog</title>
<style type="text/css">
body{
background-image: url("barber\ chairs.jpg");}
h1{
font-size: 50px;
text-align: center;
font-family:Georgia, 'Times New Roman', Times;
padding-right: 300px;
color:saddlebrown;
font-weight: normal;
padding-top: 20px;
padding-bottom: 0px;
margin-top: 0px;
margin-left: 0px;
}
header{
position: relative;
color: white;
padding-left: 240px;
vertical-align: middle;
margin-top: 0px;
background-color:wheat;
border-top-color: wheat;
border-bottom: wheat;
border-right: wheat;
border-left-color:wheat;
z-index: 8px;
}
#downarrow2{
width: 30px;
height: 30px;
border: none;
vertical-align: bottom;
}
ul, li{
display: inline;
font-size: 35px;
color:saddlebrown;
text-align: center;
padding-inline: 25px;
}
/* set the position of dropdown */
.dropdown {
position: relative;
display: inline-block;
}
#list-items a{
display: block;
}
/* provide css to background of list items */
#list-items {
display: none;
position: absolute;
background-color: white;
}
.button{
color: saddlebrown;
font-style: normal;
text-decoration-style: none;
text-decoration: none;
border: none;
background-color: wheat;
font-size: 35px;
font-family: inherit;
}
a{
color: saddlebrown;
font-style: normal;
text-decoration-style: none;
text-decoration: none;
}
</style>
<script>
//show and hide dropdown list item on button click
function show_hide() {
var click = document.getElementById("list-items");
if(click.style.display ==="none") {
click.style.display ="block";
} else {
click.style.display ="none";
}
}
</script>
</head>
<body>
<header>
<h1 id="Fortyfour">Forty Four</h1>
<p>
<ul>
<li><a href="www.fortyfour.com.html">Home</a></li>
<li><a href="">Services</a></li>
<li> <div class="dropdown">
<button onclick="show_hide()" class="button">Hair Cuts <img src="down arrow 2.png" id="downarrow2"></button>
<!-- dropdown list items will show when we click the drop button -->
<div id="list-items">
<a href="Men.html"> Men </a>
<a href="Women.html"> Women</a>
<a href="Kids.html"> Kids</a>
</div>
</div>
</li>
<li><a href="blog.html">Blog</a></li>
<li><a href="contactus.html">Contact us</a></li>
</ul>
</p>
</header>
</body>
</html>