forked from zapellass123/OpenEmailGenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SMOOTHSCROLL SINGLE PAGE WEBSITE.html
125 lines (109 loc) · 2.78 KB
/
SMOOTHSCROLL SINGLE PAGE WEBSITE.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
/*CSS CODE START FROM HERE */
html {
scroll-behavior: smooth;
}
body {
margin: 0;
padding: 0;
font-family: Comic Sans MS;
}
nav {
width: 100%;
background: #262626;
overflow: hidden;
position: fixed;
top: 0;
}
ul {
padding: 0;
margin: 0;
list-style: none;
display: flex;
width: 100%;
justify-content: center;
}
li {
float: left;
}
a {
font-size: 22px;
padding: 20px;
width: 100px;
display: inline-block;
text-decoration: none;
color: #ffffff;
text-transform: uppercase;
font-weight: bolder;
}
a:hover {
color: aquamarine;
}
#section1 {
height: 800px;
background: chocolate;
display: inline-block;
width: 100%;
}
#section2 {
height: 800px;
display: inline-block;
background: brown;
width: 100%;
}
#section3 {
height: 800px;
background: blue;
display: inline-block;
width: 100%;
}
#section4 {
height: 800px;
background: green;
display: inline-block;
width: 100%;
}
h1 {
width: 25%;
border-radius: 30px;
margin: 80px;
margin-left: 35%;
text-align: center;
border: 2px black solid;
cursor: pointer;
}
h1:hover {
color: aquamarine;
}
/*CSS CODE EMD FROM HERE */
</style>
</head>
<body>
<nav>
<ul>
<li><a href="#section1">HOME</a></li>
<li><a href="#section2">ABOUT</a></li>
<li><a href="#section3">CONTACT</a></li>
<li><a href="#section4">BLOG</a></li>
</ul>
</nav>
<div id="section1">
<h1 class="sec1">HOME </h1>
</div>
<div id="section2">
<h1 class="sec2">ABOUT</h1>
</div>
<div id="section3">
<h1>CONTACT</h1>
</div>
<div id="section4">
<h1>BLOG</h1>
</div>
</body>
</html>