Skip to content

Commit 622e8dd

Browse files
committed
push nav right
1 parent 9900393 commit 622e8dd

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/components/NavBar/NavBar.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,12 @@ a:hover{
2929

3030
.blue:hover{
3131
color : lightblue;
32+
}
33+
.nav-scroll{
34+
float:right;
35+
36+
}
37+
#navbarSupportedContent{
38+
width: max-content;
39+
margin-left: auto;
3240
}

src/components/NavBar/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const NavBar = () => {
4848
aria-controls="navbarSupportedContent">
4949
</Navbar.Toggle>
5050
<Navbar.Collapse id="navbarSupportedContent">
51-
<Nav className="ml-auto">
51+
<Nav className ='nav-scroll'>
5252
<Nav.Item>
5353
<Link scroll={smoothScroll} className="nav-link" to="/#aboutUs" onClick={() => setExpanded(expanded ? false : "expanded")}>
5454
About Us<span className="sr-only">(current)</span>

0 commit comments

Comments
 (0)