Skip to content

Commit c45f4ee

Browse files
committed
Added custom scroll bar
1 parent 13175d9 commit c45f4ee

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

css/style.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@
1313
body {
1414
background-color: #c0c0c0;
1515
}
16+
/* Css custom scroll-bar starts */
17+
::-webkit-scrollbar {
18+
width: 10px;
19+
}
20+
21+
::-webkit-scrollbar-track {
22+
box-shadow: inset 0 0 5px white;
23+
border-radius: 10px;
24+
}
25+
26+
::-webkit-scrollbar-thumb {
27+
background: black;
28+
border-radius: 10px;
29+
}
30+
/* Css custom scroll-bar ends */
31+
1632

1733
/* .body-div {
1834

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
<title>Game Of Thrones - Blog</title>
2626
</head>
27-
<body>
28-
<div id="home">
27+
<body >
28+
<div id="home" >
2929
<!-- Nav-->
3030

3131
<nav class="navbar navbar-dark bg-dark fixed-top">

0 commit comments

Comments
 (0)