-
Notifications
You must be signed in to change notification settings - Fork 0
/
sticky.jsp
93 lines (85 loc) · 3 KB
/
sticky.jsp
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<style>
body {
position: relative;
}
ul.nav-pills {
top:30%;
position: sticky;
}
ul.nav-pill.nav-stacked{
texcolor:purple;
}
.nav-pills > li > a:hover{
color: purple;
font-size:20px;
font-weight: bold;
background-color: white;
}
.nav-pills > li.active > a:hover{
color: white;
background-color: purple;
}
.nav-pills > li.active > a, .nav-pills > li.active > a:focus {
color: white;
background-color: purple;
}
.nav-pills > li>a{
font-weight: bold;
color:black;
}
</style>
</head>
<body data-spy="scroll" data-target="#myScrollspy" data-offset="20" >
<div class="upper">
</div>
<div class="container">
<div class="row">
<nav class="col-sm-3" id="myScrollspy" id="ok1">
<ul class="nav nav-pills nav-stacked" data-spy="affix" data-offset-top="205" style="width:100%;font-size:20px">
<li class="active" style="width:100%"><a href="#section1"><center><i class="fa fa-fire hg" aria-hidden="true"></i> Hit food</center></a></li>
<li style="width:100%"><a href="#section2" ><center><i class="fas fa-eraser" aria-hidden="true"></i> Deals on food</center></a></li>
<li style="width:100%"><a href="#section3"><center><i class="fa fa-truck" aria-hidden="true"></i> Free delivery</center></a></li>
<li style="width:100%"><a href="#section4"><center><i class="fa fa-leaf hg" aria-hidden="true"></i> Vege Mainia</center></a></li>
<li style="width:100%"><a href="#section5"><center><i class="fas fa-fish"aria-hidden="true"></i> Non Vege Mainia</center></a></li>
<li style="width:100%"><a href="#section6"><center><i class="far fa-grin-beam-sweat"aria-hidden="true"></i> Dude Food</center></a></li>
<li style="width:100%"><a href="#section7"><center><i class="fas fa-clipboard-check" aria-hidden="true"></i> See All</center></a></li>
</ul>
</nav>
<div class="col-sm-9" style="width:80%">
<div id="section1"><br>
<h1>Hit Food in ur Area</h1><br>
<%@ include file="popular.jsp"%>
</div>
<div id="section2"><br>
<h1>Hot Deals for today</h1><br>
<%@ include file="popular.jsp"%>
</div>
<div id="section3"><br>
<h1>Free of cost delivery to your door step.</h1><br>
<%@ include file="popular.jsp"%>
</div>
<div id="section4"><br>
<h1>Vegetarian special</h1><br>
<%@ include file="popular.jsp"%>
</div>
<div id="section5"><br>
<h1>Non Vegetarian Special</h1><br>
<%@ include file="popular.jsp"%>
</div>
<div id="section6"><br>
<h1>Pocket Friendly Khana</h1><br>
<%@ include file="popular.jsp"%>
</div>
<div id="section7"><br>
<h1>Sell all type of food</h1><br>
<%@ include file="popular.jsp"%>
</div>
</div>
</div>
</div>
</body>
</html>