Skip to content

Commit 7a97819

Browse files
authored
[Feature] Navbar sections have no hover effect. (#436)
#431 In Navbar section there was no hover effect. I add hover effect in existing html file. @CSEdgeOfficial Please merge this little update in your main project under gssoc'24 and level 2.
1 parent 7a09eeb commit 7a97819

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@
3030

3131
<!--Google Site Search Verification-->
3232
<meta name="google-site-verification" content="lnzqpbpjoknDdDMpcJhBthXHLR7jUWtfSXoGHbdpI40" />
33+
<style>
34+
/* CSS for Navbar hover effects */
35+
.navbar-nav .nav-link {
36+
transition: color 0.3s, background-color 0.3s;
37+
}
38+
39+
.navbar-nav .nav-link:hover {
40+
color: #ffffff;
41+
background-color: rgba(255, 255, 255, 0.2);
42+
border-radius: 4px;
43+
}
44+
</style>
3345
</head>
3446

3547
<body>

0 commit comments

Comments
 (0)