Skip to content

Commit f9207f4

Browse files
authored
Merge pull request #46 from nandini040/master
Added scroll up button to top
2 parents 4bf5c25 + 6dc4dd0 commit f9207f4

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

Landing page/Landing_page.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
:root{
77
scroll-behavior: smooth;
88
}
9+
html{
10+
scroll-behavior: smooth;
11+
}
912
.header{
1013
min-height: 100vh;
1114
width: 100%;
@@ -233,3 +236,25 @@ nav .fa{
233236
.fa-heart-o{
234237
color: #f44336;
235238
}
239+
240+
/*--Scroll up Button--*/
241+
.arrow-btn{
242+
position: fixed;
243+
bottom: 30px;
244+
right: 30px;
245+
z-index: 9;
246+
}
247+
.arrow-btn a{
248+
height: 39px;
249+
width: 37px;
250+
text-align: center;
251+
background: #1b1b1b;
252+
display: block;
253+
border-radius: 3px;
254+
cursor: pointer;
255+
}
256+
.arrow-btn a span{
257+
color: #f2f2f2;
258+
line-height: 39px;
259+
font-size: 25px;
260+
}

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@
99
<link rel="preconnect" href="https://fonts.gstatic.com">
1010
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
1111
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
12+
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
1213
<title>Issue solver</title>
1314
</head>
1415
<body>
16+
<div class="arrow-btn">
17+
<a href="#"><span class="fas fa-angle-up"></span></a>
18+
</div>
1519
<section class="header">
1620
<nav>
1721
<a herf="Landing_page.html"><img src="images/logo.jpg"></a>

0 commit comments

Comments
 (0)