Skip to content

Commit 6585f1d

Browse files
committed
feat:scrolltotopbutton added
1 parent 9f3cffe commit 6585f1d

File tree

9 files changed

+12
-17
lines changed

9 files changed

+12
-17
lines changed
File renamed without changes.

button.css

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
justify-content: center;
99
display: none;
1010
align-items: center;
11-
border-radius: 100%;
12-
background-color: grey;
11+
border-radius: 100%; /* Makes the button circular */
1312
}
1413

1514
.go-top-btn img {
16-
width: 45px;
17-
height: 45px;
18-
}
19-
15+
width: 55px;
16+
height: 55px;
17+
border-radius: 50%; /* Makes the image circular */
18+
}

csedge.courses/Resources.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ <h4>Follow US</h4>
854854
<script src="./Internships/script.js"></script>
855855

856856
<button class="go-top-btn">
857-
<img src="upi-arrow.png" alt="up-arrow">
857+
<img src="up-arrow2.png" alt="up-arrow">
858858

859859
<script src="ScrollToTop.js"></script>
860860
</button>

csedge.courses/index.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -804,12 +804,12 @@ i {
804804
justify-content: center;
805805
display: none;
806806
align-items: center;
807-
border-radius: 100%;
808-
background-color: grey;
807+
border-radius: 100%; /* Makes the button circular */
809808
}
810809

811810
.go-top-btn img {
812-
width: 45px;
813-
height: 45px;
811+
width: 55px;
812+
height: 55px;
813+
border-radius: 50%; /* Makes the image circular */
814814
}
815815

csedge.courses/up-arrow2.png

35.2 KB
Loading

csedge.courses/upi-arrow.png

-15.5 KB
Binary file not shown.

index.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,19 +324,15 @@ <h6>Quick Links</h6>
324324
</div>
325325
</div>
326326

327-
<div class="container">
328-
<h1 class="hello-text">Hello</h1>
329-
</div>
330-
331327
</footer>
332328
<!-- Bootstrap core JS-->
333329
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
334330
<script src="./posts/script.js"></script>
335331

336332
<button class="go-top-btn">
337-
<img src="up-arrow.png" alt="up-arrow">
333+
<img src="up-arrow2.png" alt="up-arrow">
338334

339-
<script src="ScrolllToTop.js"></script>
335+
<script src="ScrollToTop.js"></script>
340336
</button>
341337

342338
</body>

up-arrow.png

-543 Bytes
Binary file not shown.

up-arrow2.png

35.2 KB
Loading

0 commit comments

Comments
 (0)